public EntityCopyUtil() { FromType = typeof(FromEntity); ToType = typeof(ToEntity); EntityTypesCache Cache = EntityTypesCache.CreateInstance(); FromPropertyNames = Cache.GetItem(FromType).PropertyNames; ToPropertyNames = Cache.GetItem(ToType).PropertyNames; _FromGeter = new DynamicMethod <FromEntity>(); _ToSeter = new DynamicMethod <ToEntity>(); }
public EntityCloneUtil() { this.EntityType = typeof(Entity); EntityTypesCache Cache = EntityTypesCache.CreateInstance(); PropertyNames = Cache.GetItem(EntityType).PropertyNames; ExcludeNames = new List <string>(); _Copyer = new DynamicMethod <Entity>(); }