Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWtrrarreptupdatesingle(ref DataRow row, Wtrrarreptupdatesingle entity)
 {
     row.SetField("rowid-wterah", entity.rowidWterah.ToByteArray());
     row.SetField("duedt", entity.duedt);
     row.SetField("reqshipdt", entity.reqshipdt);
     row.SetField("mergefl", entity.mergefl);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Wtrrarreptupdatesingle BuildWtrrarreptupdatesingleFromRow(DataRow row)
        {
            Wtrrarreptupdatesingle entity = new Wtrrarreptupdatesingle();

            entity.rowidWterah = row.Field <byte[]>("rowid-wterah").ToStringEncoded();
            entity.duedt       = row.Field <DateTime?>("duedt");
            entity.reqshipdt   = row.Field <DateTime?>("reqshipdt");
            entity.mergefl     = row.Field <bool>("mergefl");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }