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