ASP.NET MVC4 with Entity Framework -


i'm designing asp.net mvc4 web application multi-tenancy application different databases different customers.

i'm planning use entity framework , i'm new it, have following questions assumption follow database first model.

  1. is edmx file still needs generated? in other words, entity model generated in edmx sufficient or required create layer of entity models , map database?

  2. where should entity conceptual models reside in application architecture? can have models (db models, view models) in separate project?

multitenancy same database parent "customer" object or similar, building multi-instance app (not sure if it's relevant question important distinction based on how you're deploying app)?

to answer other question(s) possible:

  1. yes, need generate data-model , can put them wherever want. may sufficient needs want build custom view models well.
  2. if need multiple projects have access same models , want maintain them in single place, extract them own project. if entire app contained within single project, drop "models" folder.

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -