File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
NHibernate.DomainModel/Northwind/Mappings Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 21
21
22
22
<class name =" TimesheetEntry" table =" TimesheetEntries" >
23
23
<id name =" Id" column =" TimesheetEntryId" >
24
- <generator class =" native " />
24
+ <generator class =" assigned " />
25
25
</id >
26
26
27
27
<property name =" EntryDate" />
Original file line number Diff line number Diff line change @@ -87,12 +87,14 @@ public static void CreateMiscTestData(ISession session)
87
87
{
88
88
new TimesheetEntry
89
89
{
90
+ Id = 1,
90
91
EntryDate = KnownDate,
91
92
NumberOfHours = 6,
92
93
Comments = "testing 123"
93
94
},
94
95
new TimesheetEntry
95
96
{
97
+ Id = 2,
96
98
EntryDate = KnownDate.AddDays(1),
97
99
NumberOfHours = 14
98
100
}
@@ -107,22 +109,26 @@ public static void CreateMiscTestData(ISession session)
107
109
{
108
110
new TimesheetEntry
109
111
{
112
+ Id = 3,
110
113
EntryDate = DateTime.Now.AddMinutes(20),
111
114
NumberOfHours = 4
112
115
},
113
116
new TimesheetEntry
114
117
{
118
+ Id = 4,
115
119
EntryDate = DateTime.Now.AddMinutes(10),
116
120
NumberOfHours = 8,
117
121
Comments = "testing 456"
118
122
},
119
123
new TimesheetEntry
120
124
{
125
+ Id = 5,
121
126
EntryDate = DateTime.Now.AddMinutes(13),
122
127
NumberOfHours = 7
123
128
},
124
129
new TimesheetEntry
125
130
{
131
+ Id = 6,
126
132
EntryDate = DateTime.Now.AddMinutes(45),
127
133
NumberOfHours = 38
128
134
}
You can’t perform that action at this time.
0 commit comments