public static Wtrrarreptdeleterepts BuildWtrrarreptdeletereptsFromRow(DataRow row) { Wtrrarreptdeleterepts entity = new Wtrrarreptdeleterepts(); entity.rowidWterah = row.Field <byte[]>("rowid-wterah").ToStringEncoded(); entity.seqno = row.IsNull("seqno") ? 0 : row.Field <int>("seqno"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromWtrrarreptdeleterepts(ref DataRow row, Wtrrarreptdeleterepts entity) { row.SetField("rowid-wterah", entity.rowidWterah.ToByteArray()); row.SetField("seqno", entity.seqno); row.SetField("userfield", entity.userfield); }