/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromWtrrarreptmergerunsngl(ref DataRow row, Wtrrarreptmergerunsngl entity) { row.SetField("orderdtmonth", entity.orderdtmonth); row.SetField("orderdtday", entity.orderdtday); row.SetField("orderdtyear", entity.orderdtyear); row.SetField("whse", entity.whse); row.SetField("printqtyfl", entity.printqtyfl); row.SetField("userfield", entity.userfield); }
public static Wtrrarreptmergerunsngl BuildWtrrarreptmergerunsnglFromRow(DataRow row) { Wtrrarreptmergerunsngl entity = new Wtrrarreptmergerunsngl(); entity.orderdtmonth = row.IsNull("orderdtmonth") ? string.Empty : row.Field <string>("orderdtmonth"); entity.orderdtday = row.IsNull("orderdtday") ? string.Empty : row.Field <string>("orderdtday"); entity.orderdtyear = row.IsNull("orderdtyear") ? string.Empty : row.Field <string>("orderdtyear"); entity.whse = row.IsNull("whse") ? string.Empty : row.Field <string>("whse"); entity.printqtyfl = row.Field <bool>("printqtyfl"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }