public void Seed(SmartObjectContext context)
 {
     if (DataSettings.DatabaseIsInstalled())
     {
         DataMigrator.AddGranularPermissions(context);
     }
 }
示例#2
0
        public void Seed(SmartObjectContext context)
        {
            context.MigrateLocaleResources(MigrateLocaleResources);
            context.SaveChanges();

            if (DataSettings.DatabaseIsInstalled())
            {
                DataMigrator.AddGranularPermissions(context);
            }
        }