public static Aretsplitpayproof BuildAretsplitpayproofFromRow(DataRow row) { Aretsplitpayproof entity = new Aretsplitpayproof(); entity.amountproof = row.IsNull("amountproof") ? decimal.Zero : row.Field <decimal>("amountproof"); entity.discamtproof = row.IsNull("discamtproof") ? decimal.Zero : row.Field <decimal>("discamtproof"); 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 UpdateRowFromAretsplitpayproof(ref DataRow row, Aretsplitpayproof entity) { row.SetField("amountproof", entity.amountproof); row.SetField("discamtproof", entity.discamtproof); row.SetField("userfield", entity.userfield); }