public static LoveKaoServiceReference.所属分类 把所属分类转化为所属分类WCF(所属分类 所属分类) { LoveKaoServiceReference.所属分类 belongSortWCF = new LoveKaoServiceReference.所属分类(); belongSortWCF.ID = 所属分类.ID; belongSortWCF.分类名 = 所属分类.分类名; belongSortWCF.相关信息ID = 所属分类.相关ID; return belongSortWCF; }
public static 所属分类 把所属分类WCF转化成所属分类(LoveKaoServiceReference.所属分类 belongSortWCF) { 所属分类 belongSort = new 所属分类(); belongSort.ID = belongSortWCF.ID; belongSort.分类名 = belongSortWCF.分类名; belongSort.相关ID = belongSortWCF.相关信息ID; return belongSort; }