public static AppModel ConvertGoodsDetail(APPSettModel model) { if (model != null) { return model; } return null; }
public static APPSettModel ConvertGoodsInSql(AppModel model) { if (model != null) { var r = new APPSettModel(); //映射处理 var map = new TypeMapping<AppModel, APPSettModel>(); map.AutoMap(); map.CopyLeftToRight(model, r); //r.TaxonomyId = r.Categorys.Union(r.Tags).Distinct().Select(e => e.Key).ToList(); return r; } return null; }