/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromVaeifullreceiptcriteria(ref DataRow row, Vaeifullreceiptcriteria entity) { row.SetField("vano", entity.vano); row.SetField("vasuf", entity.vasuf); row.SetField("wlwhsechgfl", entity.wlwhsechgfl); row.SetField("laborcheckedfl", entity.laborcheckedfl); row.SetField("userfield", entity.userfield); }
public static Vaeifullreceiptcriteria BuildVaeifullreceiptcriteriaFromRow(DataRow row) { Vaeifullreceiptcriteria entity = new Vaeifullreceiptcriteria(); entity.vano = row.IsNull("vano") ? 0 : row.Field <int>("vano"); entity.vasuf = row.IsNull("vasuf") ? 0 : row.Field <int>("vasuf"); entity.wlwhsechgfl = row.Field <bool>("wlwhsechgfl"); entity.laborcheckedfl = row.Field <bool>("laborcheckedfl"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }