阅读背景:

我可以将两个表“连接”到一个类中,同时使用NHibernate创建多对一关系吗?

来源:互联网 

We have a legacy database schema which I've tried (unsuccessfully) to map with NHibernate. To give a simplified example, say I want a Person class whose first name comes from the "Person" table, but their last name comes from the "Person2" table. The "Person" table also has the Id of the person's Car and I want my Person class to have a Car property. I can map all that using the following;We have a legacy database schema which I've tri




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: