Cratis / Chronicle

Event Sourcing database built with ease of use, productivity, compliance and software evolution in mind.
https://cratis.io
MIT License
28 stars 5 forks source link

Add AutoMap() for projections #82

Open einari opened 2 years ago

einari commented 2 years ago

For mapping an event onto a model, it would be nice to have an AutoMap() method that can be called that will automatically map all properties that are equal by name and type.

For those properties you then want to ignore, we should have a .Ignore() method that could take a param array of expressions to ignore multiple.

einari commented 2 years ago

See #160 for input on how AutoMap() could work.