Esempio n. 1
0
        public EntityCloneUtil()
        {
            this.EntityType = typeof(Entity);
            EntityTypesCache Cache = EntityTypesCache.CreateInstance();

            PropertyNames = Cache.GetItem(EntityType).PropertyNames;
            ExcludeNames  = new List <string>();
            _Copyer       = new DynamicMethod <Entity>();
        }
Esempio n. 2
0
        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>();
        }