public static Loadwtlineextcriteria BuildLoadwtlineextcriteriaFromRow(DataRow row) { Loadwtlineextcriteria entity = new Loadwtlineextcriteria(); entity.wtno = row.IsNull("wtno") ? 0 : row.Field <int>("wtno"); entity.wtsuf = row.IsNull("wtsuf") ? 0 : row.Field <int>("wtsuf"); entity.lineno = row.IsNull("lineno") ? 0 : row.Field <int>("lineno"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromLoadwtlineextcriteria(ref DataRow row, Loadwtlineextcriteria entity) { row.SetField("wtno", entity.wtno); row.SetField("wtsuf", entity.wtsuf); row.SetField("lineno", entity.lineno); }