/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromOereturninvoicelistcriteria(ref DataRow row, Oereturninvoicelistcriteria entity) { row.SetField("custno", entity.custno); row.SetField("specnstype", entity.specnstype); row.SetField("prod", entity.prod); row.SetField("userfield", entity.userfield); row.SetField("shipto", entity.shipto); }
public static Oereturninvoicelistcriteria BuildOereturninvoicelistcriteriaFromRow(DataRow row) { Oereturninvoicelistcriteria entity = new Oereturninvoicelistcriteria(); entity.custno = row.IsNull("custno") ? decimal.Zero : row.Field <decimal>("custno"); entity.specnstype = row.IsNull("specnstype") ? string.Empty : row.Field <string>("specnstype"); entity.prod = row.IsNull("prod") ? string.Empty : row.Field <string>("prod"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); entity.shipto = row.IsNull("shipto") ? string.Empty : row.Field <string>("shipto"); return(entity); }