public void DB2DB_BOMStandard(BOM dbBOM, ref BOMStandard dbBOMStandard) { AutoMapper.Mapper.Map <BOM, BOMStandard>(dbBOM, dbBOMStandard); }
public void DB2DB_NewVersionForBOM(BOM dbOriginBOM, ref BOM dbBOM) { AutoMapper.Mapper.Map <BOM, BOM>(dbOriginBOM, dbBOM); }
//public void DB2DB_BOM(BOMStandard dbBOMStandard, ref BOM dbItem) //{ // BOM dbBOM = new BOM(); // BOM dbParentBOM = new BOM(); // getDbItemByBOMID(dbBOMStandard.BOMStandardID, dbItem, ref dbParentBOM); // dbParentBOM.BOM1.Add(dbBOM); // AutoMapper.Mapper.Map<BOMStandard, BOM>(dbBOMStandard, dbBOM); // foreach (var item in dbBOMStandard.BOMStandard1) // { // DB2DB_BOM(item, ref dbItem); // } //} public void DB2DB_BOM(BOMStandard dbBOMStandard, ref BOM dbBOM) { AutoMapper.Mapper.Map <BOMStandard, BOM>(dbBOMStandard, dbBOM); }