1

Closed

Hybrid Class with Mapped and Dynamic Attributes?

description

Thanks for the quick reply!
Your example is basically what I have in place now...although not nearly as elegant as your solution!

I was also looking at the IObjectMapping/IPropertyMapping interfaces to see if there was any way they could be hacked to provide an "extra attributes" mapping, similar to what MongoDB provides (shown below), but it didn't look doable.
BsonClassMap.RegisterClassMap<MyClass>(cm => 
{
    cm.AutoMap();
    cm.MapExtraElementsMember(c => c.CatchAll);
});
Closed Sep 8, 2015 at 1:37 AM by MadHatter22
Released

comments

wrote Sep 7, 2015 at 4:51 AM

Associated with changeset 40272: CatchAll property mapping added.
Minor refactoring to BooleanReducer.

wrote Sep 7, 2015 at 4:56 AM

wrote Sep 7, 2015 at 9:51 PM

Associated with changeset 40278: Added support for cath all mapping being included in modifications.
Corrected event listener pipeline for Add operations.
Using cleanup

wrote Sep 8, 2015 at 1:37 AM