NHibernate 3.2 Mapping by convention (code) stored

2019-07-17 01:16发布

How can I map a stored procedure using mapping by convention or mapping by code?

If it is not possible then how to map it by hbm and include it into configuration done by Mapping by convention?

1条回答
三岁会撩人
2楼-- · 2019-07-17 01:41

Nhibernate 3.2 allows you to mix your mappings; that is you can use the mapping by code syntax and still have your old hbm.xml files.

See this blog post to find out how.

For mapping a stored procedure then I recommend reading this nhibernate.info Blog post.

查看更多
登录 后发表回答