示例#1
0
 public Attribute MapToOrm(DalAttribute entity)
 {
     return(new Attribute
     {
         id = entity.Id,
         name = entity.Name,
     });
 }
示例#2
0
        public BllAttribute MapToBll(DalAttribute entity)
        {
            BllAttribute bllEntity = new BllAttribute
            {
                Id   = entity.Id,
                Name = entity.Name,
            };

            return(bllEntity);
        }
示例#3
0
        public DalAttribute MapToDal(BllAttribute entity)
        {
            DalAttribute dalEntity = new DalAttribute
            {
                Id   = entity.Id,
                Name = entity.Name,
            };

            return(dalEntity);
        }