예제 #1
0
        static public void initDbb()
        {
            SqlConnection.ClearAllPools();
            IDatabaseInitializer <DbbContext> init = new DropCreateDatabaseAlways <DbbContext>();

            Database.SetInitializer(init);
            init.InitializeDatabase(new DbbContext());
            using (var ctx = new DbbContext())
            {
                ctx.Database.Initialize(force: true);
            }
        }
예제 #2
0
 protected TemplateHelper()
 {
     Dbb = new DbbContext();
 }