0

I try mapp this table:

    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)
);

and,

 Schema("AHQ");
        CompositeId()
            .KeyProperty(x => x.IdReportConfiguration)
            .KeyProperty(x => x.IdAttribute);
        Map(a => a.Order);
        Map(a => a.Type).CustomType<ReportConfigurationAttribute.ReportConfigurationAttributeType>();

But

NHibernate.MappingException : No persister

any suggestions?

Thanks

1 Answer 1

1

Are you using fluent configuration? If so please also post the code for this.

Check that your mapping classes are public.

Sign up to request clarification or add additional context in comments.

1 Comment

hi UpTheCreek, you are right, I forget to put my class like public.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.