asp.net mvc - What would be the best way to stucture MVC model and data access layer code? -
i using ef code first access info in mvc. best place set dbcontext , objectcontext code :-
-- create new folder / area different namespace , set code in it.
-- create dbcontext dal project outside mvc project , add together reference it.
wondering best way ?.
to advantage of tdd(test driven design i.e., design on fly) suggest go different layers(most importantly has happen keeping eye on abstraction , separation of concerns. i.e., breaking scheme in structural-elements, architectural-components, sub-systems, sub-assemblies)
please follow below great answers(for similar type of questions)
clean solution (project) construction ef, repositories, entities
whats recommended solution construction big website in asp.net
asp.net-mvc
No comments:
Post a Comment