0
我试试MAPP此表:映射使用功能NHibernate
CREATE TABLE AHQ.ReportConfigurationAttribute (
IdReportConfiguration integer NOT NULL,
IdAttribute integer NOT NULL,
[Order] integer NOT NULL,
[Type] integer NOT NULL,
CONSTRAINT PK_ReportConfiguration_Attribute PRIMARY KEY (IdReportConfiguration, IdAttribute)
);
,并
Schema("AHQ");
CompositeId()
.KeyProperty(x => x.IdReportConfiguration)
.KeyProperty(x => x.IdAttribute);
Map(a => a.Order);
Map(a => a.Type).CustomType<ReportConfigurationAttribute.ReportConfigurationAttributeType>();
但
NHibernate.MappingException : No persister
有什么建议?
谢谢
嗨UpTheCreek,你是对的,我忘了把我的课像公众一样。 – Tarlak
非常感谢 – Tarlak