/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromLoadwtlinesettings(ref DataRow row, Loadwtlinesettings entity) { row.SetField("lICSNPOFl", entity.lICSNPOFl); row.SetField("cWTSerialEntTy", entity.cWTSerialEntTy); row.SetField("cWTLotEntTy", entity.cWTLotEntTy); row.SetField("lNonStockEntry", entity.lNonStockEntry); row.SetField("cDefaultNonStockTy", entity.cDefaultNonStockTy); row.SetField("cWTApprWhse", entity.cWTApprWhse); row.SetField("lSeeCostFl", entity.lSeeCostFl); row.SetField("userfield", entity.userfield); }
public static Loadwtlinesettings BuildLoadwtlinesettingsFromRow(DataRow row) { Loadwtlinesettings entity = new Loadwtlinesettings(); entity.lICSNPOFl = row.Field <bool>("lICSNPOFl"); entity.cWTSerialEntTy = row.IsNull("cWTSerialEntTy") ? string.Empty : row.Field <string>("cWTSerialEntTy"); entity.cWTLotEntTy = row.IsNull("cWTLotEntTy") ? string.Empty : row.Field <string>("cWTLotEntTy"); entity.lNonStockEntry = row.Field <bool>("lNonStockEntry"); entity.cDefaultNonStockTy = row.IsNull("cDefaultNonStockTy") ? string.Empty : row.Field <string>("cDefaultNonStockTy"); entity.cWTApprWhse = row.IsNull("cWTApprWhse") ? string.Empty : row.Field <string>("cWTApprWhse"); entity.lSeeCostFl = row.Field <bool>("lSeeCostFl"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }