M2M4RIA is an extension for OpenRIAServices that adds support for many-2-many relations.
- Can be installed with NuGet.
- Supports Entity Framework code-first, model first, and DbContext.
- A strongly-typed configuration mechanism using the Fluent Metadata API for OpenRIAServices
- A code generator that seamlessly integrates with the code generator of OpenRIAServices.
- Requires only a minimal adaption of your data model (see StepByStepInstructions on wiki).
- Supports many-2-many relations with composite keys.
M2M4RIA is distributed as a collection of NuGet packages:
- OpenRIAServices.M2M This is the server-side part of M2M4RIA. It contains an entity code generator and an extension to the fluent metadata configuration for OpenRIAServices.
- OpenRIAServices.M2M.LinkTable This is a generic link table implementation that is used for creating "link table" views for your M2M relations (see GeneralOverview).
- OpenRiaServices.M2M.Client This is the client-side part of M2M4RIA. It contains classes for creating M2M views (see GeneralOverview).
- Add the M2M4RIA NuGet packages to your solution.
- Create LinkTable entities (By subclassing a generic LinkTable class provided by M2M4RIA).
- Extend your data model with "link table" views.
- Configure your M2M relations using the fluent metadata API.
- Add Insert/Delete operations to your domain service for your link table entities A complete step-by-step guide is provided here.
The source code repository contains a sample application that shows how M2M4RIA can be used..
For more information and installation instructions go to https://github.com/OpenRIAServices/OpenRiaServices.M2M and check the wiki
Step by step guide is availible at the wiki