Exemplo n.º 1
0
 public void WriteRecord(IDataRecord record, IPropWriter writer)
 {
     foreach (var field in ReadList)
     {
         field.WriteProp(record, writer);
     }
 }
Exemplo n.º 2
0
        public override void WriteProp(IDataRecord record, IPropWriter writer)
        {
            writer.WriteProp(fld_name);
            long length, offset = 0;
            //const int start = 1, finish = 2;
            int state = 1;

            do //sequential access
            {
                length = record.GetBytes(Ordinal, offset, fld_buff, 0, fld_size);
                if (length < fld_size)
                {
                    state += 2;
                }
                //write chunk of data
                writer.WriteProp(fld_buff, (int)length, state);
                offset += length;
                state   = 0;
            }while (length == fld_size);
        }
Exemplo n.º 3
0
 public override void WriteProp(IPropWriter writer)
 {
     writer.WriteProp(fld_name, fld_value);
 }
Exemplo n.º 4
0
 public override void WriteProp(IDataRecord record, IPropWriter writer)
 {
     writer.WriteProp(fld_name, record.GetString(Ordinal));
 }
Exemplo n.º 5
0
 public abstract void WriteProp(IPropWriter writer);
Exemplo n.º 6
0
 public abstract void WriteProp(IDataRecord record, IPropWriter writer);
Exemplo n.º 7
0
 public override void WriteProp(IDataRecord reader, IPropWriter writer)
 {
     writer.WriteProp(fld_name, reader.GetDouble(Ordinal));
 }