Exemplo n.º 1
0
        public MemberMap(DataReader reader)
        {
            Id   = reader.ReadInt16();
            Name = reader.ReadString();

            DbType     = DbType.Read(reader);
            MemberType = DbType.Type;
        }
Exemplo n.º 2
0
        static void Skip(DataReader reader)
        {
            DbType.Read(reader); // skip PK
            var count = reader.ReadInt32();

            for (var i = 0; i < count; ++i)
            {
                new MemberMap(reader);
            }
        }
Exemplo n.º 3
0
        public Metadata(DataReader reader, uint hash = 0)
        {
            _hash = hash;
            Key   = DbType.Read(reader);

            var count = reader.ReadInt32();

            for (int i = 0; i < count; ++i)
            {
                var map = new MemberMap <T>(reader);
                _members.Add(map.Id, map);
            }
        }