Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing a web project. so i am using Asp.net MVC, With EntityFramework.
My architecture look like this.

Class Libraries.

- BOL
applicationdb.edmx.

- DAL (ref BOL)
CRUD methods for edmx.

- BLL (ref DAL)
Businesslogic using DAL CRUD Methods


MVC Project. (Ref BLL)

Controller
Models
- ViewModels

Views


Problem:
I am using BOL project as a Common project for DTOs who share their entities to the other projects.
But BOL project has a edmx file having CRUD functionality and i dont want to share these functions to the other project except DAL.

I thought i should move the edmx file in to DAL and create separate DTOs in BOL.
But i dont know the tool for creating DTOs which can be easily pass to the EDMX CRUD methods.?
(i hared about Code Smith).
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900