Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DiscriminatorValue override to AutoMapping #469

Merged
merged 1 commit into from
Sep 20, 2020

Conversation

hazzik
Copy link
Member

@hazzik hazzik commented Sep 20, 2020

Allows to override discriminator value of the subclass.

var autoMapper = AutoMap.AssemblyOf<ExampleClass>()
    .Where(t => t.Namespace == "FluentNHibernate.Automapping.TestFixtures")
    .Override<ExampleClass>(t => t.DiscriminateSubClassesOnColumn("Discriminator"))
    .Override<ExampleInheritedClass>(m => m.DiscriminatorValue(1));

@hazzik hazzik added this to the 3.0.0 milestone Sep 20, 2020
@hazzik hazzik merged commit e9e574d into master Sep 20, 2020
@hazzik hazzik deleted the automapping-DiscriminatorValue branch September 20, 2020 01:58
@hazzik hazzik added the feature label Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant