예제 #1
0
        public static DataDict ToEntity(this DataDictModel model)
        {
            var entity = new DataDict()
            {
                Id = model.Id,
                //Type = model.Type,
                Value  = model.Value,
                Text   = model.Text,
                Parent = model.Parent
            };

            return(entity);
        }
예제 #2
0
        public static DataDictModel ToModel(this DataDict entity)
        {
            var model = new DataDictModel()
            {
                Id = entity.Id,
                //Type = entity.Type,
                Value  = entity.Value,
                Text   = entity.Text,
                Parent = entity.Parent
            };

            return(model);
        }