Ejemplo n.º 1
0
        public DataBaseContext() : base("Curator")
        {
            // http://stackoverflow.com/a/12190182
            typeof(Database).GetMethod("SetInitializer").MakeGenericMethod(GetType()).Invoke(null, new object[] { null });

            Configuration.AutoDetectChangesEnabled = false;
            EnumWork.AttachRussianEnums(this);
        }
Ejemplo n.º 2
0
 public DataBaseContext() : base("Curator")
 {
     Configuration.AutoDetectChangesEnabled = false;
     EnumWork.AttachRussianEnums(this);
 }