File tree Expand file tree Collapse file tree 4 files changed +14
-57
lines changed
src/NHibernate.Test/BulkManipulation Expand file tree Collapse file tree 4 files changed +14
-57
lines changed Original file line number Diff line number Diff line change @@ -2,19 +2,7 @@ namespace NHibernate.Test.BulkManipulation
2
2
{
3
3
public class Course
4
4
{
5
- private long courseId ;
6
- private string description ;
7
-
8
- public virtual long CourseId
9
- {
10
- get { return courseId ; }
11
- set { courseId = value ; }
12
- }
13
-
14
- public virtual string Description
15
- {
16
- get { return description ; }
17
- set { description = value ; }
18
- }
5
+ public virtual long CourseId { get ; set ; }
6
+ public virtual string Description { get ; set ; }
19
7
}
20
8
}
Original file line number Diff line number Diff line change @@ -5,26 +5,8 @@ namespace NHibernate.Test.BulkManipulation
5
5
[ Serializable ]
6
6
public class Enrolment
7
7
{
8
- private long enrolmentId ;
9
- private Student student ;
10
- private Course course ;
11
-
12
- public virtual long EnrolmentId
13
- {
14
- get { return enrolmentId ; }
15
- set { enrolmentId = value ; }
16
- }
17
-
18
- public virtual Student Student
19
- {
20
- get { return student ; }
21
- set { student = value ; }
22
- }
23
-
24
- public virtual Course Course
25
- {
26
- get { return course ; }
27
- set { course = value ; }
28
- }
8
+ public virtual long EnrolmentId { get ; set ; }
9
+ public virtual Student Student { get ; set ; }
10
+ public virtual Course Course { get ; set ; }
29
11
}
30
12
}
Original file line number Diff line number Diff line change @@ -36,15 +36,14 @@ public void SimpleDelete()
36
36
[ Test , KnownBug ( "#3489" ) ]
37
37
public void InsertFromSelectWithMultipleAssociations ( )
38
38
{
39
- using ( var s = OpenSession ( ) )
40
- using ( var tx = s . BeginTransaction ( ) )
41
- {
42
- s . CreateQuery ( "insert into Enrolment (Course, Student)" +
43
- " select e.Course, e.Student from Enrolment e" )
44
- . ExecuteUpdate ( ) ;
39
+ using var s = OpenSession ( ) ;
40
+ using var tx = s . BeginTransaction ( ) ;
45
41
46
- tx . Commit ( ) ;
47
- }
42
+ s . CreateQuery ( "insert into Enrolment (Course, Student)" +
43
+ " select e.Course, e.Student from Enrolment e" )
44
+ . ExecuteUpdate ( ) ;
45
+
46
+ tx . Commit ( ) ;
48
47
}
49
48
}
50
49
}
Original file line number Diff line number Diff line change @@ -2,19 +2,7 @@ namespace NHibernate.Test.BulkManipulation
2
2
{
3
3
public class Student
4
4
{
5
- private long studentId ;
6
- private string name ;
7
-
8
- public virtual long StudentId
9
- {
10
- get { return studentId ; }
11
- set { studentId = value ; }
12
- }
13
-
14
- public virtual string Name
15
- {
16
- get { return name ; }
17
- set { name = value ; }
18
- }
5
+ public virtual long StudentId { get ; set ; }
6
+ public virtual string Name { get ; set ; }
19
7
}
20
8
}
You can’t perform that action at this time.
0 commit comments