/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIceanupdatebinloc(ref DataRow row, Iceanupdatebinloc entity) { row.SetField("icenh-rowid", entity.icenhRowid.ToByteArray()); row.SetField("binloc", entity.binloc); row.SetField("updateoewt", entity.updateoewt); row.SetField("userfield", entity.userfield); }
public static Iceanupdatebinloc BuildIceanupdatebinlocFromRow(DataRow row) { Iceanupdatebinloc entity = new Iceanupdatebinloc(); entity.icenhRowid = row.Field <byte[]>("icenh-rowid").ToStringEncoded(); entity.binloc = row.IsNull("binloc") ? string.Empty : row.Field <string>("binloc"); entity.updateoewt = row.Field <bool>("updateoewt"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }