BLToolkit Output Parameter in DataAccessor
2015-08-26 16:12
615 查看
How to map output parameter in SQL to an out parameter in DataAccessor? I've tried to put Direction.Output attribute, but with no luck. Nonworking sample:
answered 2011-08-25 13:05:50#1
Might help
Bltoolkit DataAccess UnitTests
on Output Params
Bltoolkit Direction documentation
answered 2011-08-25 14:32:48#2
Resolved by changing result type to
public abstract class DocumentAccessor : DataAccessor<DocumentRecord> { [SprocName("[dbo].[FE_GetDocuments]")] public abstract IEnumerable<DocumentRecord> GetDocuments( [ParamName("PageIndex")] int pageIndex, [ParamName("PageSize")] int pageSize, [ParamName("SortColumn")] string sortColumn, [ParamName("SortDirection")] string sortDirection, [ParamName("TotalCount"), Direction.Output] out int totalCount); }
2 Answers
answered 2011-08-25 13:05:50#1Might help
Bltoolkit DataAccess UnitTests
on Output Params
Bltoolkit Direction documentation
answered 2011-08-25 14:32:48#2
Resolved by changing result type to
IList<DocumentRecord>. Looks like BLToolkit generates deferred-execution proxy for
IEnumerable<T>signature.
相关文章推荐
- php数字补零的两种方法
- XHProf的安装和使用(PHP性能测试神器)
- PHP生成PDF文件
- PHP函数
- ThinkPHP URL重写
- PHP的扩展框架之Phalcon初探
- wnmp环境php7与其他php版本共存
- php操作mysql常用的一些内置函数
- PHP 正则表达式
- php对接移动支付宝流程以及商户的私钥、公钥说明
- PHPExcel浏览器输出Excel2007出错
- (4) php面向对象(OOP)编程完全教程
- PHP 直接在共享内存中存储数据集
- (3)PHP 学习笔记进阶篇 from imooc
- [PHP]swoole_server几个进程的分工
- (2)PHP 学习笔记 from imooc
- Ubuntu构建ftp服务器(一)
- (1) PHP 从零学起 WampServer
- PHPExcel读取excel文件
- 服务器安装php_cURL扩展