/// <summary>
        /// 获取得到值以后的 泛型数组
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="SQL"></param>
        /// <param name="list"></param>
        /// <returns></returns>
        public List<T> getModelList<T>(string SQL, List<string> list)where T:class,new()
        {
            try
            {
                List<T> Mlist = new List<T>();
                IDataReader dr = getDataReader(SQL, list);
                while (dr.Read())
                {
                    T obj = new T();
                    obj = this.LoadFromReader<T>(dr);
                    Mlist.Add(obj);
                }
                return Mlist;
            }
            catch (Exception ex)
            {
                return null;
            }
        }WCF编译时,出现如下错误
类型“System.Collections.Generic.List`1[T]”无法作为架构类型被导出,因为它是一种开放的泛型类型。泛型类型仅可以在其所有的泛型参数类型均为实际类型时才可以被导出。 寻求解决办法