/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromEtccdetdata855inotes(ref DataRow row, Etccdetdata855inotes entity) { row.SetField("sxxmldoc-rowid", entity.sxxmldocRowid.ToByteArray()); row.SetField("section", entity.section); row.SetField("secseq", entity.secseq); row.SetField("secure", entity.secure); row.SetField("notedata", entity.notedata); row.SetField("approvety", entity.approvety); row.SetField("approvetycodes", entity.approvetycodes); row.SetField("approvetydescs", entity.approvetydescs); row.SetField("approvetyenabled", entity.approvetyenabled); row.SetField("stagecdword", entity.stagecdword); row.SetField("statusmess", entity.statusmess); row.SetField("userfield", entity.userfield); }
public static Etccdetdata855inotes BuildEtccdetdata855inotesFromRow(DataRow row) { Etccdetdata855inotes entity = new Etccdetdata855inotes(); entity.sxxmldocRowid = row.Field <byte[]>("sxxmldoc-rowid").ToStringEncoded(); entity.section = row.IsNull("section") ? string.Empty : row.Field <string>("section"); entity.secseq = row.IsNull("secseq") ? 0 : row.Field <int>("secseq"); entity.secure = row.IsNull("secure") ? 0 : row.Field <int>("secure"); entity.notedata = row.IsNull("notedata") ? string.Empty : row.Field <string>("notedata"); entity.approvety = row.IsNull("approvety") ? string.Empty : row.Field <string>("approvety"); entity.approvetycodes = row.IsNull("approvetycodes") ? string.Empty : row.Field <string>("approvetycodes"); entity.approvetydescs = row.IsNull("approvetydescs") ? string.Empty : row.Field <string>("approvetydescs"); entity.approvetyenabled = row.Field <bool>("approvetyenabled"); entity.stagecdword = row.IsNull("stagecdword") ? string.Empty : row.Field <string>("stagecdword"); entity.statusmess = row.IsNull("statusmess") ? string.Empty : row.Field <string>("statusmess"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }