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

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