Example #1
0
 static EntitiesLocator()
 {
     EntityFramework.Container container = new EntityFramework.Container();
     EntityFramework.Locator.RegisterDefaults(container);
     container.Register <EntityFramework.Batch.IBatchRunner>(() => new EntityFramework.Batch.MySqlBatchRunner());
     EntityFramework.Locator.SetContainer(container);
 }
Example #2
0
 private void ConfigMySql()
 {
     EntityFramework.Container container = new EntityFramework.Container();
     EntityFramework.Locator.RegisterDefaults(container);
     container.Register <EntityFramework.Batch.IBatchRunner>(() => new EntityFramework.Batch.MySqlBatchRunner());
     EntityFramework.Locator.SetContainer(container);
 }