Exemple #1
0
        private static ConnectInfoCollection ReaderToEntityList(YZReader reader)
        {
            ConnectInfoCollection rv = new ConnectInfoCollection();

            while (reader.Read())
            {
                ConnectInfo connect = new ConnectInfo();
                connect.connectId   = reader.ReadInt32("connectId");
                connect.connectName = reader.ReadString("connectName");
                connect.connectType = reader.ReadEnum <SourceTypeEnum>("connectType", SourceTypeEnum.NoType);
                connect.caption     = reader.ReadString("caption");
                connect.connectStr  = reader.ReadString("connectStr");
                connect.createTime  = reader.ReadDateTime("createTime");
                connect.updateTime  = reader.ReadDateTime("updateTime");
                connect.isvalid     = reader.ReadBool("isvalid", false);
                rv.Add(connect);
            }
            return(rv);
        }