lixiaojun
2024-12-19 e37b6f2ca026097b83da3ec989cb0d454cceddad
Service/HStation.Service.Assets.Core/05-service/00-core/03-helper/DbFirstHelper.cs
@@ -42,19 +42,22 @@
                var typeList = new List<Type>()
                {
                   typeof(Entity.AssetsPumpGroup),
                   typeof(Entity.AssetsPumpGroupAndMainMap),
                   typeof(Entity.AssetsPumpGroupAndMainMapping),
                   typeof(Entity.AssetsPumpMain),
                   typeof(Entity.AssetsPumpMainAndPartMap),
                   typeof(Entity.AssetsPumpMainAndPartMapping),
                   typeof(Entity.AssetsPumpPartMain),
                   typeof(Entity.AssetsPumpPropContent),
                   typeof(Entity.AssetsPumpSeries),
                   typeof(Entity.AssetsPumpType),
                   typeof(Entity.AssetsPumpTypeSeriesMap),
                   typeof(Entity.AssetsPumpSeriesTypeMapping),
                   typeof(Entity.AssetsPumpSeriesManufacturerMapping),
                   //阀门
                   typeof(Entity.AssetsValveMain),
                   typeof(Entity.AssetsValveSeries),
                   typeof(Entity.AssetsValveCoefficient),
                   typeof(Entity.AssetsValvePartMain),
                   typeof(Entity.AssetsValveMainAndPartMapping),
                   //弯头
                   typeof(Entity.AssetsElbowMain),
@@ -83,32 +86,78 @@
                   //厂商
                   typeof(Entity.AssetsManufacturer),
                   typeof(Entity.AssetsManufacturerMapping),
                   typeof(Entity.AssetsManufacturerSeries),
                   //自定义
                    typeof(Entity.AssetsUserDefined),
                   //空压机
                   typeof(Entity.AssetsExchangerMain),
                   typeof(Entity.AssetsExchangerMainAndPartMap),
                   typeof(Entity.AssetsExchangerPartMain),
                   typeof(Entity.AssetsExchangerPropContent),
                   typeof(Entity.AssetsExchangerSeries),
                   typeof(Entity.AssetsExchangerCoefficient),
                   //换热器
                   typeof(Entity.AssetsCompressorPartMain),
                   typeof(Entity.AssetsCompressorMain),
                   typeof(Entity.AssetsCompressorMainAndPartMap),
                   typeof(Entity.AssetsCompressorMainAndPartMapping),
                   typeof(Entity.AssetsCompressorPropContent),
                   typeof(Entity.AssetsCompressorSeries),
                   typeof(Entity.AssetsCompressorCoefficient),
                   //成套设备
                   typeof(Entity.AssetsEquipmentMain),
                   typeof(Entity.AssetsEquipmentPumpMapping),
                   typeof(Entity.AssetsEquipmentSeries),
                       };
                   typeof(Entity.AssetsPackageMain),
                   typeof(Entity.AssetsPackagePumpMapping),
                   typeof(Entity.AssetsPackageSeries),
                   typeof(Entity.AssetsPackageMfrMapping),
                   typeof(Entity.AssetsPackagePartMain),
                   typeof(Entity.AssetsPackageMainAndPartMapping),
                   typeof(Entity.AssetsPackagePropContent),
                   //闷头
                   typeof(Entity.AssetsBluntheadMain),
                   typeof(Entity.AssetsBluntheadSeries),
                   typeof(Entity.AssetsBluntheadCoefficient),
                   //水池
                   typeof(Entity.AssetsTankMain),
                   typeof(Entity.AssetsTankSeries),
                   typeof(Entity.AssetsTankCoefficient),
                   typeof(Entity.AssetsTankPartMain),
                   typeof(Entity.AssetsTankMainAndPartMapping),
                   //消火栓
                   typeof(Entity.AssetsHydrantMain),
                   typeof(Entity.AssetsHydrantSeries),
                   typeof(Entity.AssetsHydrantCoefficient),
                   //过渡件
                   typeof(Entity.AssetsTranslationMain),
                   typeof(Entity.AssetsTranslationSeries),
                   typeof(Entity.AssetsTranslationCoefficient),
                   //水表
                   typeof(Entity.AssetsMeterSeries),
                   typeof(Entity.AssetsMeterMain),
                   typeof(Entity.AssetsMeterFactor),
                   //流量计
                   typeof(Entity.AssetsFlowmeterSeries),
                   typeof(Entity.AssetsFlowmeterMain),
                   typeof(Entity.AssetsFlowmeterFactor),
                   //压力表
                   typeof(Entity.AssetsPressmeterSeries),
                   typeof(Entity.AssetsPressmeterMain),
                   typeof(Entity.AssetsPressmeterFactor),
                   //换热器
                   typeof(Entity.AssetsExchangerSeries),
                   typeof(Entity.AssetsExchangerMain),
                   typeof(Entity.AssetsExchangerFactor),
                   //冷却塔
                   typeof(Entity.AssetsCoolingSeries),
                   typeof(Entity.AssetsCoolingMain),
                   typeof(Entity.AssetsCoolingFactor),
                 };
                using (var db = new SqlSugarClient(connectConfig))
                {