在使用DapperExtensions时遇到"其他信息: ConnectionString 属性尚未初始化。"错误

今天在使用在使用DapperExtensions时遇到"其他信息: ConnectionString 属性尚未初始化。"错误。

                //return conn.GetList<T>(predicate, sort, null, null, buffered);使用该代码报错,在ToList之后不会
                return conn.GetList<T>(predicate, sort, null, null, buffered).ToList();

  

猜你喜欢

转载自www.cnblogs.com/RainbowInTheSky/p/11734065.html