public static Loadwtquickviewtiescriteria BuildLoadwtquickviewtiescriteriaFromRow(DataRow row) { Loadwtquickviewtiescriteria entity = new Loadwtquickviewtiescriteria(); 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 UpdateRowFromLoadwtquickviewtiescriteria(ref DataRow row, Loadwtquickviewtiescriteria entity) { row.SetField("wtno", entity.wtno); row.SetField("wtsuf", entity.wtsuf); row.SetField("lineno", entity.lineno); }