コード例 #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>();
        }
コード例 #2
0
ファイル: EntityCopyUtil.cs プロジェクト: xpnew/XPClassLib
        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>();
        }