Reputation: 445
We are starting new project which is going to use MVC3 and mongoDB for Database storage. Could anyone point us towards better Project architecture.
We have following queries:
Note: I have seen few other SO question already and those are not answering my questions directly.
Thanks in advance.
Upvotes: 0
Views: 256
Reputation: 386
On a project I've worked on we ended up combining what you have as Core and Data. Initially we went for a full separation of concerns with business logic in our Services and a DAL which had the Mongo queries. Because when you're working with MongoDB its pretty different to working with a RDBMS we found much of our business logic was written in a way that made it Mongo specific, so we combined the layers as it seemed we pretty much had a redundant layer, and if we did decide to go back to an RDBMS we'd likely rewrite some of the logic.
As for your questions your Domain objects are your Mongo entities so I'd put those in your data layer. I'd then have your MVC model in your WEB project and use Automapper to map between them.
Upvotes: 1