/// <summary> /// Устаревший метод для добавления новых объектов в набор EntitySet WholeTableSet. Взамен можно использовать метод .Add связанного свойства ObjectSet<T>. /// </summary> public void AddToWholeTableSet(WholeTable wholeTable) { base.AddObject("WholeTableSet", wholeTable); }
/// <summary> /// Создание нового объекта WholeTable. /// </summary> /// <param name="id">Исходное значение свойства Id.</param> /// <param name="buildingName">Исходное значение свойства BuildingName.</param> /// <param name="buildingDescription">Исходное значение свойства BuildingDescription.</param> /// <param name="buildingStandartOfHeat">Исходное значение свойства BuildingStandartOfHeat.</param> /// <param name="buildingTotalArea">Исходное значение свойства BuildingTotalArea.</param> /// <param name="heatSupplierName">Исходное значение свойства HeatSupplierName.</param> /// <param name="heatSupplierDescription">Исходное значение свойства HeatSupplierDescription.</param> /// <param name="clearingRequirements">Исходное значение свойства ClearingRequirements.</param> /// <param name="clearingCalculationHot">Исходное значение свойства ClearingCalculationHot.</param> /// <param name="clearingCalculationByBuhgaltery">Исходное значение свойства ClearingCalculationByBuhgaltery.</param> /// <param name="meterReadingHeat">Исходное значение свойства MeterReadingHeat.</param> /// <param name="meterReadingWater">Исходное значение свойства MeterReadingWater.</param> /// <param name="contractHeatByLoading">Исходное значение свойства ContractHeatByLoading.</param> /// <param name="contractPeopleCount">Исходное значение свойства ContractPeopleCount.</param> /// <param name="contractHotWaterByNorm">Исходное значение свойства ContractHotWaterByNorm.</param> /// <param name="contractTotalHeatConsumption">Исходное значение свойства ContractTotalHeatConsumption.</param> /// <param name="normativeCalculationArea">Исходное значение свойства NormativeCalculationArea.</param> /// <param name="normativeEstimateConsumptionHeat">Исходное значение свойства NormativeEstimateConsumptionHeat.</param> /// <param name="normativConsumptionHeatByTotalArea">Исходное значение свойства NormativConsumptionHeatByTotalArea.</param> /// <param name="normativeConsumptionHeatByCalculationArea">Исходное значение свойства NormativeConsumptionHeatByCalculationArea.</param> public static WholeTable CreateWholeTable(global::System.Int32 id, global::System.String buildingName, global::System.String buildingDescription, global::System.Double buildingStandartOfHeat, global::System.Double buildingTotalArea, global::System.String heatSupplierName, global::System.String heatSupplierDescription, global::System.Double clearingRequirements, global::System.Double clearingCalculationHot, global::System.Double clearingCalculationByBuhgaltery, global::System.Double meterReadingHeat, global::System.Double meterReadingWater, global::System.Double contractHeatByLoading, global::System.Double contractPeopleCount, global::System.Double contractHotWaterByNorm, global::System.Double contractTotalHeatConsumption, global::System.Double normativeCalculationArea, global::System.Double normativeEstimateConsumptionHeat, global::System.Double normativConsumptionHeatByTotalArea, global::System.Double normativeConsumptionHeatByCalculationArea) { WholeTable wholeTable = new WholeTable(); wholeTable.Id = id; wholeTable.BuildingName = buildingName; wholeTable.BuildingDescription = buildingDescription; wholeTable.BuildingStandartOfHeat = buildingStandartOfHeat; wholeTable.BuildingTotalArea = buildingTotalArea; wholeTable.HeatSupplierName = heatSupplierName; wholeTable.HeatSupplierDescription = heatSupplierDescription; wholeTable.ClearingRequirements = clearingRequirements; wholeTable.ClearingCalculationHot = clearingCalculationHot; wholeTable.ClearingCalculationByBuhgaltery = clearingCalculationByBuhgaltery; wholeTable.MeterReadingHeat = meterReadingHeat; wholeTable.MeterReadingWater = meterReadingWater; wholeTable.ContractHeatByLoading = contractHeatByLoading; wholeTable.ContractPeopleCount = contractPeopleCount; wholeTable.ContractHotWaterByNorm = contractHotWaterByNorm; wholeTable.ContractTotalHeatConsumption = contractTotalHeatConsumption; wholeTable.NormativeCalculationArea = normativeCalculationArea; wholeTable.NormativeEstimateConsumptionHeat = normativeEstimateConsumptionHeat; wholeTable.NormativConsumptionHeatByTotalArea = normativConsumptionHeatByTotalArea; wholeTable.NormativeConsumptionHeatByCalculationArea = normativeConsumptionHeatByCalculationArea; return wholeTable; }