Beispiel #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();
 }
Beispiel #2
0
 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();
 }
Beispiel #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();
 }