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

added convenience for adding filters to automaps #29

Merged
merged 1 commit into from Aug 9, 2011
Merged

added convenience for adding filters to automaps #29

merged 1 commit into from Aug 9, 2011

Conversation

icambron
Copy link
Contributor

@icambron icambron commented Jul 4, 2011

Combining filters with automapping is a bit awkward. See, for example, this SO question:

http://stackoverflow.com/questions/5728935/property-filter-with-fluent-nhibernate-automapping/6538285

It would be easier to say:

.Mappings(m => m.AutoMappings.Add(AutoMap.AssemblyOf<Domain.Entity>(cfg) 
            .AddFilter<DateFilter>());

So I added that method. It's pure convenience, so I didn't add a test, but let me know if you think one's needed.

@jagregory
Copy link
Collaborator

Hey, sorry I haven't got around to merging this in yet. Will hopefully get time soon.

jagregory added a commit that referenced this pull request Aug 9, 2011
added convenience for adding filters to automaps
@jagregory jagregory merged commit ea41a9e into nhibernate:master Aug 9, 2011
ivaylo5ev pushed a commit to ivaylo5ev/fluent-nhibernate that referenced this pull request Sep 26, 2021
added convenience for adding filters to automaps
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.

None yet

2 participants