@@ -54,8 +54,16 @@ protected override void CreateSchema()
54
54
CreateTable ( "DateTime" ) ;
55
55
CreateTable ( "Double" ) ;
56
56
CreateTable ( "Decimal" ) ;
57
+
58
+ base . CreateSchema ( ) ;
57
59
}
58
60
61
+ /// <summary>
62
+ /// This function creates the schema for our custom entities.
63
+ /// If the SchemaExporter provided a mechanism to override the database
64
+ /// type, this method would not be required.
65
+ /// </summary>
66
+ /// <param name="name"></param>
59
67
private void CreateTable ( string name )
60
68
{
61
69
var sb = new StringBuilder ( ) ;
@@ -143,6 +151,14 @@ private string GetQualifiedName(string catalog, string schema, string name)
143
151
}
144
152
}
145
153
154
+ [ Test , TestCaseSource ( nameof ( GetTestCases ) ) ]
155
+ public async Task TestNHDateTimeAsync ( CultureInfo from , CultureInfo to )
156
+ {
157
+ DateTime leapDay = new DateTime ( 2024 , 2 , 29 , new GregorianCalendar ( GregorianCalendarTypes . USEnglish ) ) ;
158
+
159
+ await ( PerformTestAsync < DateTime , NHDateTimeEntity > ( from , to , leapDay , ( expected , actual ) => Assert . AreEqual ( expected , actual ) ) ) ;
160
+ }
161
+
146
162
[ Test , TestCaseSource ( nameof ( GetTestCases ) ) ]
147
163
public async Task TestDateTimeAsync ( CultureInfo from , CultureInfo to )
148
164
{
@@ -180,14 +196,8 @@ public async Task TestIntegerAsync(CultureInfo from, CultureInfo to)
180
196
181
197
private CultureInfo CurrentCulture
182
198
{
183
- get
184
- {
185
- return CultureInfo . CurrentCulture ;
186
- }
187
- set
188
- {
189
- CultureInfo . CurrentCulture = value ;
190
- }
199
+ get => CultureInfo . CurrentCulture ;
200
+ set => CultureInfo . CurrentCulture = value ;
191
201
}
192
202
193
203
public static object [ ] [ ] GetTestCases ( )
0 commit comments