AzureFunctions-TheLongRun-Leagues icon indicating copy to clipboard operation
AzureFunctions-TheLongRun-Leagues copied to clipboard

Auto wire up of the domain model

Open MerrionComputing opened this issue 6 years ago • 2 comments

In the Common library we need a way of automatically wiring up the domain model(s) - the event definitions, entity types, projections, commands, queries and classifiers - from the dlls that contain the business logic of the domain(s).

This will make use of the attributes exported from the CQRSAzure library that have been used to annotate the classes in these business libraries.

MerrionComputing avatar Jan 27 '19 14:01 MerrionComputing

I think this should be similar to the way that entity framework does this for a code-first setup.

It also needs a fluent way of adding to the model at run time (for example to plug-in new events?)

MerrionComputing avatar Jan 27 '19 15:01 MerrionComputing

Outline classes for this added under TheLongRun.Common\Models

Need to decide what additional information should be contained in/wired up in the domains model.

MerrionComputing avatar Jan 31 '19 12:01 MerrionComputing