Example #1
0
        public DatabaseTableRow CreateRow(object primary_value)
        {
            DatabaseTableRow row = CreateRow();

            row.SetPrimaryValue(primary_value);
            return(row);
        }
Example #2
0
        public DatabaseTableRowStream(DatabaseTableRow r, DatabaseTableField f, bool read, bool write)
        {
            can_read  = read;
            can_write = write;

            row   = r;
            field = f;

            if (can_read)
            {
                memory_stream = row.GetValue <byte[]>(field).GetMemoryStream();
            }
            else
            {
                memory_stream = new MemoryStream();
            }

            Initialize(memory_stream);
        }
Example #3
0
 static public Stream GetWriteStream(this DatabaseTableRow item, DatabaseTableField field)
 {
     return(new DatabaseTableRowStream(item, field, false, true));
 }