pjvds / ncqrs

Ncqrs Framework - The CQRS Framework for .NET
Other
539 stars 164 forks source link

Lambda expression for the command attribute #90

Open pifta opened 11 years ago

pifta commented 11 years ago

Hello,

I think it will be very useful and more flexible to define type and the method with lambda expression in the MapsToAggregateRootMethodAttribute attribute. Now the refactor is disgusting with strings.

Something similar: [MapsToAggregateRootMethod(Sample.Domain.Message, c => c.UpdateMessageText())]

Thank you!

pifta