/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromOelinesuperavailcriteria(ref DataRow row, Oelinesuperavailcriteria entity) { row.SetField("prod", entity.prod); row.SetField("whse", entity.whse); row.SetField("superfl", entity.superfl); row.SetField("porrarfl", entity.porrarfl); }
public static Oelinesuperavailcriteria BuildOelinesuperavailcriteriaFromRow(DataRow row) { Oelinesuperavailcriteria entity = new Oelinesuperavailcriteria(); entity.prod = row.IsNull("prod") ? string.Empty : row.Field <string>("prod"); entity.whse = row.IsNull("whse") ? string.Empty : row.Field <string>("whse"); entity.superfl = row.Field <bool>("superfl"); entity.porrarfl = row.Field <bool>("porrarfl"); return(entity); }