Example #1
0
 public IndustrialObject MapToOrm(DalIndustrialObject entity)
 {
     return(new IndustrialObject
     {
         id = entity.Id,
         //  componentLib_id = entity.ComponentLib_id,
         name = entity.Name
     });
 }
Example #2
0
        //ComponentLibService componentLibService;

        public BllIndustrialObject MapToBll(DalIndustrialObject entity)
        {
            BllIndustrialObject bllEntity = new BllIndustrialObject
            {
                Id   = entity.Id,
                Name = entity.Name,
                // ComponentLib = entity.ComponentLib_id != null ? componentLibService.Get((int)entity.ComponentLib_id) : null,
            };

            return(bllEntity);
        }
Example #3
0
        public DalIndustrialObject MapToDal(BllIndustrialObject entity)
        {
            DalIndustrialObject dalEntity = new DalIndustrialObject
            {
                Id   = entity.Id,
                Name = entity.Name,
                //ComponentLib_id = entity.ComponentLib != null ? entity.ComponentLib.Id : (int?)null,
            };

            return(dalEntity);
        }