我在我的映射文件中嘗試從主表獲取值時遇到問題。如何映射從Nhibernate中的主表獲取值?
我的表:
CREATE TABLE Customer
(
[CustomerId] INT PRIMARY KEY,
[FullName] NVARCHAR(50) NOT NULL
)
CREATE TABLE CustomerOrder
(
[CustomerOrderId] INT PRIMARY KEY,
[CustomerId] INT,
[TransactionDate] DATETIME
)
我的課:
public class CustomerOrder
{
public class Id {get; set;}
public class CustomerName {get; set;}
public class TransactionDate {get; set;}
}
...
如何,我可以得到全名和值映射到客戶名稱屬性在我CustomerOrder流利的接口映射類?