开发者

NHibernate - Is there a way to map a formula that uses sql function and returns Table?!

开发者 https://www.devze.com 2023-04-10 04:51 出处:网络
I have a sql function that returns table and I need to map it to a collection i\'m trying with formula but as far as i can tell formula is good only to single returned value (right?!?)

I have a sql function that returns table and I need to map it to a collection i'm trying with formula but as far as i can tell formula is good only to single returned value (right?!?)

is there a way to use formula and map it to a DataTable or some other collection

<propery name="Prop" type="DataTable" for开发者_StackOverflow社区mula="select function(...)"/>

if not what are my other options?!

thanks!


http://ayende.com/blog/1720/using-sql-functions-in-nhibernate

For return value you can use DTO or Persistence class

0

精彩评论

暂无评论...
验证码 换一张
取 消