private void Setup(Assembly Assembly) { MappingManager = new MappingManager(Assembly); QueryProvider = new Default(Assembly); foreach (Type Key in MappingManager.Mappings.Keys) { foreach (IMapping Mapping in MappingManager.Mappings[Key]) { QueryProvider.AddMapping(Mapping); } } Utilities.Reflection.AOP.AOPManager Manager = new Reflection.AOP.AOPManager(); Manager.AddAspect(new ORMAspect(MappingManager.Mappings)); DatabaseManager = new DatabaseManager(QueryProvider.Mappings); DatabaseManager.Setup(); }
private static void Setup(bool Profile, Assembly[] Assemblies) { MappingManager = new MappingManager(Assemblies); QueryProvider = new Default(Profile, Assemblies); foreach (Type Key in MappingManager.Mappings.Keys) foreach (IMapping Mapping in MappingManager.Mappings[Key]) QueryProvider.AddMapping(Mapping); Company.Utilities.Reflection.AOP.AOPManager Manager = new Reflection.AOP.AOPManager(); Manager.AddAspect(new ORMAspect(MappingManager.Mappings)); DatabaseManager = new DatabaseManager(QueryProvider.Mappings); DatabaseManager.Setup(); }
private void Setup(Assembly Assembly) { MappingManager = new MappingManager(Assembly); QueryProvider = new Default(Assembly); foreach (Type Key in MappingManager.Mappings.Keys) foreach (IMapping Mapping in MappingManager.Mappings[Key]) QueryProvider.AddMapping(Mapping); Utilities.Reflection.AOP.AOPManager Manager = new Reflection.AOP.AOPManager(); Manager.AddAspect(new ORMAspect(MappingManager.Mappings)); DatabaseManager = new DatabaseManager(QueryProvider.Mappings); DatabaseManager.Setup(); }