Beispiel #1
0
        public void DropDb()
        {
            var db = DbUtil.Create <TestDbContext>(ConnectionString);

            db.Database.EnsureDeleted();
        }
Beispiel #2
0
 public CustomDbContext <TKey> GetContext <TKey>() where TKey : IEquatable <TKey>
 {
     return(DbUtil.Create <CustomDbContext <TKey> >(ConnectionString));
 }