| name | new-projection |
| description | Guide for adding new aggregate projections to the internal Sample projects or to any projects consuming the Structur framework. Use this when asked to add new projections to the Samples or Sample projects. |
To add new aggregate projections to a consuming project, follow this process:
- Determine the target consuming API project for the new handlers. For example,
Synonms.Structur.Sample.Api.
- Determine the pluralised form of the aggregate name to be used as the collection name for the feature. For example, if the aggregate name is "Employee" the collection name would be "Employees".
- Determine the destination folder for the new projections in the consuming API project as
{ApiProject}/Features/{CollectionName}/Projections. For example, Synonms.Structur.Sample.Api/Features/Employees/Projections. Create it if it does not exist. In this folder:
- Create the required projection for the specified domain event. Use the following guidelines: