Skip to content

Conversation

@nats
Copy link

@nats nats commented Aug 13, 2025

In NHibernate.Mapping.ByCode, the class Check() method is implemented but not exposed for use.

Sample code:

            mapper.Class<Entity1>(m => {
                m.Check("arbitrary sql check");
            });

This commit adds the Check() method to correct interface for above sample to work.

void Discriminator(Action<IDiscriminatorMapper> discriminatorMapping);
void DiscriminatorValue(object value);
void Table(string tableName);
void Check(string check);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This technically changes the interface and would be a binary breaking change. Could you please instead create an extension method for it? Also, please add some tests.

@nats nats closed this Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants