Exemple #1
0
 public void TestSQLiteNetCodeGenWithViews()
 {
     using (IRepository sourceRepository = new SQLiteRepository(infoConnectionString))
     {
         var generator = new Generator4(sourceRepository, null, false, false, true);
         generator.GenerateSqliteNetModel("Test");
         var result = generator.GeneratedScript;
         var lines  = Regex.Split(result, "\r\n|\r|\n");
         Assert.AreEqual(264, lines.Length);
     }
 }
Exemple #2
0
 public void TestSQLiteNetCodeGenWithViews()
 {
     using (IRepository sourceRepository = new SQLiteRepository(infoConnectionString))
     {
         var generator = new Generator4(sourceRepository, null, false, false, true);
         generator.GenerateSqliteNetModel("Test");
         var result = generator.GeneratedScript;
         var lines = Regex.Split(result, "\r\n|\r|\n");
         Assert.AreEqual(264, lines.Length);
     }
 }