コード例 #1
0
        }                                             //ToList(a => new { sublist = fsql.Select<T>().ToList() }) 子集合查询

        public void CopyTo(ReadAnonymousTypeInfo target)
        {
            target.Property        = Property;
            target.ReflectionField = ReflectionField;
            target.CsName          = CsName;
            target.CsType          = CsType;
            target.MapType         = MapType;
            target.DbField         = DbField;
            target.DbNestedField   = DbNestedField;
            target.Consturctor     = Consturctor;
            LocalEachCopyChilds(Childs, target.Childs);
            target.Table          = Table;
            target.IsEntity       = IsEntity;
            target.IsDefaultCtor  = IsDefaultCtor;
            target.IncludeManyKey = IncludeManyKey;

            void LocalEachCopyChilds(List <ReadAnonymousTypeInfo> from, List <ReadAnonymousTypeInfo> to)
            {
                foreach (var fromChild in from)
                {
                    var toChild = new ReadAnonymousTypeInfo();
                    fromChild.CopyTo(toChild);
                    to.Add(toChild);
                }
            }
        }
コード例 #2
0
 public void CopyTo(ReadAnonymousTypeInfo target)
 {
     target.Property      = Property;
     target.CsName        = CsName;
     target.CsType        = CsType;
     target.MapType       = MapType;
     target.DbField       = DbField;
     target.Consturctor   = Consturctor;
     target.Childs        = Childs;
     target.Table         = Table;
     target.IsEntity      = IsEntity;
     target.IsDefaultCtor = IsDefaultCtor;
 }
コード例 #3
0
 public ReadAnonymousTypeOtherInfo(string field, ReadAnonymousTypeInfo read, List <object> retlist)
 {
     this.field   = field;
     this.read    = read;
     this.retlist = retlist;
 }
コード例 #4
0
 public ReadAnonymousTypeAfInfo(ReadAnonymousTypeInfo map, string field)
 {
     this.map   = map;
     this.field = field;
 }