/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromSalocaltaxlookupresults(ref DataRow row, Salocaltaxlookupresults entity) { row.SetField("state", entity.state); row.SetField("taxauth", entity.taxauth); row.SetField("descrip", entity.descrip); row.SetField("glno", entity.glno); row.SetField("rowid-sasgl", entity.rowidSasgl.ToByteArray()); row.SetField("userfield", entity.userfield); }
public static Salocaltaxlookupresults BuildSalocaltaxlookupresultsFromRow(DataRow row) { Salocaltaxlookupresults entity = new Salocaltaxlookupresults(); entity.state = row.IsNull("state") ? string.Empty : row.Field <string>("state"); entity.taxauth = row.IsNull("taxauth") ? string.Empty : row.Field <string>("taxauth"); entity.descrip = row.IsNull("descrip") ? string.Empty : row.Field <string>("descrip"); entity.glno = row.IsNull("glno") ? string.Empty : row.Field <string>("glno"); entity.rowidSasgl = row.Field <byte[]>("rowid-sasgl").ToStringEncoded(); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }