Beispiel #1
0
 public static void Initialize(TestContext context)
 {
     using (var cn = LocalDb.GetConnection(dbName))
     {
         LocalDb.ExecuteInitializeStatements(cn, DbObjects.CreateObjects());
     }
 }
Beispiel #2
0
        public static void Initialize(TestContext context)
        {
            LocalDb.TryDropDatabase("DapperCX", out _);

            using (var cn = LocalDb.GetConnection("DapperCX"))
            {
                LocalDb.ExecuteInitializeStatements(cn, DbObjects.CreateObjects());
            }
        }