File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
nuget/Sqlite_net.SourceGenerator Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ static void Execute(
193193 sb . AppendLine ( "{" ) ;
194194 sb . AppendLine ( " public static class SQLiteInitializer" ) ;
195195 sb . AppendLine ( " {" ) ;
196- sb . AppendLine ( " private static bool initialized" ) ;
196+ sb . AppendLine ( " private static bool initialized; " ) ;
197197 sb . AppendLine ( " public static void Init()" ) ;
198198 sb . AppendLine ( " {" ) ;
199199 sb . AppendLine ( " if (initialized)" ) ;
Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ public void SqliteInitializer_Outer_AndReadData ()
242242 public void SqliteInitializer_Outer_AndReadData_ZRenamedA ( )
243243 {
244244 SQLiteInitializer . Init ( ) ;
245+ var mapperCount = FastColumnSetter . customSetter . Count ;
245246
246247 var n = 20 ;
247248 var cq = from i in Enumerable . Range ( 1 , n )
@@ -257,6 +258,8 @@ public void SqliteInitializer_Outer_AndReadData_ZRenamedA()
257258 var results = db . Table < OuterTestSetter > ( ) . Where ( o => o . Z . Equals ( "10" ) ) ;
258259 Assert . AreEqual ( results . Count ( ) , 1 ) ;
259260 Assert . AreEqual ( results . FirstOrDefault ( ) . Z , "10" ) ;
261+
262+ Assert . AreEqual ( mapperCount , FastColumnSetter . customSetter . Count ) ;
260263 }
261264
262265 [ Test ]
You can’t perform that action at this time.
0 commit comments