예제 #1
0
 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();
 }
예제 #2
0
파일: ORM.cs 프로젝트: jerrymds/Concord
 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();
 }
예제 #3
0
 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();
 }