/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromVanonstockcriteria(ref DataRow row, Vanonstockcriteria entity) { row.SetField("shipprod", entity.shipprod); row.SetField("prodcat", entity.prodcat); row.SetField("whse", entity.whse); row.SetField("userfield", entity.userfield); }
public static Vanonstockcriteria BuildVanonstockcriteriaFromRow(DataRow row) { Vanonstockcriteria entity = new Vanonstockcriteria(); entity.shipprod = row.IsNull("shipprod") ? string.Empty : row.Field <string>("shipprod"); entity.prodcat = row.IsNull("prodcat") ? string.Empty : row.Field <string>("prodcat"); entity.whse = row.IsNull("whse") ? string.Empty : row.Field <string>("whse"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }