asp.net mvc - Ideal Folder Structure in MVC 3 -
i started new mvc3 application.i using ef fro data base access .i have doubts folder structure .
here attaching solution explorer picture application
i created 3 folders in models folder
1.view models - contains view modes use display informations
2.domain model - using entity framework .so put edmx files , related files .
3 . businness logic - here write service function .say if want add new ad, create object of adsservices class , call function in class controller . thiese functions use entity frame work access database .
question
1.is folder structure ideal folder structure? if not, please tell suggestion.
2.is idea creating entity data model each module in application ? (eg:ads,categories)
note : application average sized appilcation .just not big.
1.is folder structure ideal folder structure?
there no ideal structure. structure depends on type of application, size, development methodology. better create project hold domain entities , services.
2.is idea creating entity data model each module in application ? (eg:ads,categories)
this depends on size of application , boundaries in business logic(eg: 1 context sales logic , security). in case single context enough.
Comments
Post a Comment