/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromWtheaderfinishcriteria(ref DataRow row, Wtheaderfinishcriteria entity) { row.SetField("wtno", entity.wtno); row.SetField("wtsuf", entity.wtsuf); row.SetField("maintmode", entity.maintmode); row.SetField("userfield", entity.userfield); }
public static Wtheaderfinishcriteria BuildWtheaderfinishcriteriaFromRow(DataRow row) { Wtheaderfinishcriteria entity = new Wtheaderfinishcriteria(); entity.wtno = row.IsNull("wtno") ? 0 : row.Field <int>("wtno"); entity.wtsuf = row.IsNull("wtsuf") ? 0 : row.Field <int>("wtsuf"); entity.maintmode = row.Field <bool>("maintmode"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }