Extensible Web MVC Application with OpenAccess

2 posts, 1 answers
  1. Santiago
    Santiago avatar
    8 posts
    Member since:
    Feb 2011

    Posted 25 Oct 2012 Link to this post

    Hello Telerik,

    Im trying to figure out how to build my Extensible MVC Application. Well I find out that I can use the Areas approach for MVC 3 to create a extensible web site separating the application in multiple assemblies and just put the generated ".dll" into the specific area folder, so I could be able to just upload the dll files and my app could have much more functionality.

    Now my problem is with OpenAccess. I Want to create a Extensible Class Library for my entities models. Every domain class have to be associated or in a herarchy with base domain classes. But I don't know how I can make it works. You have maybe a sample using this approach.

    I want to have a base class and extend or associate Domain Classes that are in different assemblies and different models. Is there a way to do it?

    Using this Approach I could be able to use Areas in MVC and create different models in my areas but use the base models that supposed to be in the main app.


    Thank You

    Santiago Muñoz

  2. Answer
    Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 26 Oct 2012 Link to this post

    Hello Santiago,

    You could use Aggreghttp://www.telerik.com/help/openaccess-orm/fluent-mapping-merging-models-aggregate-metadata-source.htmlateMetadataSource in order to achieve that goal. The AggregateMetadataSource can be used to combine other MetadataSource instances and produce a new MetadataContainer that contains the combined metadata. The purpose of this tutorial is to show you how to work with AggregateMetadataSource.

    Kind regards,
    Damyan Bogoev
    the Telerik team
    Telerik OpenAccess ORM Meets ASP.NET Web API. Read more.
  3. DevCraft banner
Back to Top