public DataTable2Entity() { ToType = typeof(ToEntity); EntityTypesCache Cache = EntityTypesCache.CreateInstance(); ToCache = Cache.GetItem(ToType); ToPropertyNames = ToCache.PropertyNames; _ToSeter = new DynamicMethod <ToEntity>(); }
protected void Init() { ToType = typeof(ToEntity); EntityTypesCache Cache = EntityTypesCache.CreateInstance(); ToCache = Cache.GetItem(ToType); ToPropertyNames = ToCache.PropertyNames; _ToSeter = new DynamicMethod <ToEntity>(); ExcludeNames = new List <string>(); FoundNamesCount = 0; }
protected virtual void Init() { InnerType = typeof(T); var CacheManage = EntityTypesCache.CreateInstance(); TypeCache = CacheManage.GetItem(InnerType); _PropertyValueGeter = new DynamicMethod <T>(); InitIdentityList(); InitUIMemberList(); InitPrimaryKey(); }