public static GoodsDetail ConvertGoodsDetail(GoodsDetailInSql model)
        {
            if (model != null)
            {
                return model;
            }

            return null;
        }
        public static GoodsDetailInSql ConvertGoodsInSql(GoodsDetail model)
        {
            if (model != null)
            {
                var r = new GoodsDetailInSql();

                //映射处理
                var map = new TypeMapping<GoodsDetail, GoodsDetailInSql>();
                map.AutoMap();
                map.CopyLeftToRight(model, r);

                r.CategoryId = r.ItemShopCats.Select(e => e.Id).ToList();
                //r.TaxonomyId = r.Categorys.Union(r.Tags).Distinct().Select(e => e.Key).ToList();

                return r;
            }

            return null;
        }