c# - Where queries should be placed in ASP.NET MVC -
i using asp.net mvc, building erp framework 4.0 , sql server 2008.
my question should query placed? saw multiple methods while surfing. few of them follows:
- in
models - in
separate files, in dal folder - in
separate dalproject
i still confused using queries in models after research.
further info:
using simple query method, not linq , entity framework.
have plan convert project desktop application in future.
another question how business logic works in asp.net mvc if use it?
detail project
website + online information system of company around 40-50 pages of both.
user can enter in info system signing in website.
before voting close leave comment can learn something.
your question infrastructure of project depends on lots of factors.
considering information have provided in question:
i have plan convert project in desktop application in future.
for sake of usability, should have data access layer in separate project.
if interested in obtaining more information infrastructure of project, recommend you: microsoft spain - domain oriented n-layered .net 4.0 sample app documented , gives information need produce enterprise level application.
Comments
Post a Comment