Beispiel #1
0
        public static IPropertyAccessor GetAccessor(String typeFullName, String propertyName, MetaList mapping)
        {
            switch (DbConfig.Instance.OptimizeMode)
            {
            case OptimizeMode.CodeDom:
                return(CodeDomPropertyAccessor.GetAccessor(typeFullName, propertyName, mapping));

            case OptimizeMode.IL:
                return(ILPropertyAccessor.GetAccessor(typeFullName, propertyName));
            }
            return(null);
        }
Beispiel #2
0
 private static Hashtable cacheFactory(MetaList metas)
 {
     if (DbConfig.Instance.OptimizeMode == OptimizeMode.CodeDom)
     {
         CodeDomPropertyAccessor.Init(metas);
         return(CodeDomPropertyAccessor.GetFactoryList());
     }
     else if (DbConfig.Instance.OptimizeMode == OptimizeMode.IL)
     {
         ILPropertyAccessor.Init();
         return(null);
     }
     return(null);
 }