public static Loadpolinehistorycriteria BuildLoadpolinehistorycriteriaFromRow(DataRow row) { Loadpolinehistorycriteria entity = new Loadpolinehistorycriteria(); entity.pono = row.IsNull("pono") ? 0 : row.Field <int>("pono"); entity.lineno = row.IsNull("lineno") ? 0 : row.Field <int>("lineno"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromLoadpolinehistorycriteria(ref DataRow row, Loadpolinehistorycriteria entity) { row.SetField("pono", entity.pono); row.SetField("lineno", entity.lineno); }