コード例 #1
0
 public static ComponentFormViewModel MapToComponentCurrentViewModel(this ComponentCurrentVersion model)
 {
     return(new ComponentFormViewModel()
     {
         Id = model.Id,
         DFIndicatorId = model.DFIndicatorId,
         DFSourceId = model.DFSourceId,
         DFYearFiscalId = model.DFYearFiscalId,
         DFUnitId = model.DFUnitId,
         DFQuarterId = model.DFQuarterId,
         IsDeleted = model.IsDeleted,
         ExportsOfGoodsAndServices = model.ExportsOfGoodsAndServices,
         GovernmentConsumption = model.GovernmentConsumption,
         GrossCapitalFormation = model.GrossCapitalFormation,
         ImportsOfGoodsAndServices = model.ImportsOfGoodsAndServices,
         PrivateConsumption = model.PrivateConsumption,
         TotalGrossDomesticProductAtMarketPrices = model.TotalGrossDomesticProductAtMarketPrices,
         ChangeActionEnum = model.ChangeActionEnum,
         ComponentId = model.ComponentCurrentId,
         VersionStatusEnum = model.VersionStatusEnum
     });
 }
コード例 #2
0
 public void AddVer(ComponentCurrentVersion componentCurrentVersion)
 {
     _db.ComponentCurrentVersions.Add(componentCurrentVersion);
     _db.SaveChanges();
 }
コード例 #3
0
 public void UpdateVer(ComponentCurrentVersion componentCurrentVersionModel)
 {
     _db.ComponentCurrentVersions.Update(componentCurrentVersionModel);
     _db.SaveChanges();
 }