Click here to Skip to main content
15,885,757 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionMVC5 WebGrid styling issues Pin
#realJSOP24-Mar-16 3:22
mve#realJSOP24-Mar-16 3:22 
AnswerRe: MVC5 WebGrid styling issues Pin
#realJSOP24-Mar-16 7:26
mve#realJSOP24-Mar-16 7:26 
AnswerRe: MVC5 WebGrid styling issues Pin
#realJSOP24-Mar-16 7:48
mve#realJSOP24-Mar-16 7:48 
GeneralRe: MVC5 WebGrid styling issues Pin
Brisingr Aerowing24-Mar-16 17:10
professionalBrisingr Aerowing24-Mar-16 17:10 
GeneralRe: MVC5 WebGrid styling issues Pin
#realJSOP25-Mar-16 0:47
mve#realJSOP25-Mar-16 0:47 
GeneralRe: MVC5 WebGrid styling issues Pin
Brisingr Aerowing25-Mar-16 4:41
professionalBrisingr Aerowing25-Mar-16 4:41 
QuestionMVC/EF typical/best practice Pin
#realJSOP24-Mar-16 1:21
mve#realJSOP24-Mar-16 1:21 
AnswerRe: MVC/EF typical/best practice Pin
Nathan Minier24-Mar-16 1:37
professionalNathan Minier24-Mar-16 1:37 
God, no.

There are a few schools of though as to the appropriate use of DbContexts. The two that make the most sense to me are that you separate the models into domains and use a context per model domain, and the other is that you have a DbContext for each separate database. I prefer the latter, unless your object count bloats obscenely.

The important part is that the DbContext implements both the repository and UoW patterns, so design it as you would any repository and use it as a UoW.

The primary guidance that the Ef design team has always espoused is that only the first instance of a particular DbContext has much cost, after that the model has been generated and any further instances are cheap.

I hope that helps.

GeneralRe: MVC/EF typical/best practice Pin
#realJSOP24-Mar-16 2:02
mve#realJSOP24-Mar-16 2:02 
GeneralRe: MVC/EF typical/best practice Pin
Nathan Minier24-Mar-16 2:08
professionalNathan Minier24-Mar-16 2:08 
GeneralRe: MVC/EF typical/best practice Pin
John C Rayan24-Mar-16 5:27
professionalJohn C Rayan24-Mar-16 5:27 
GeneralRe: MVC/EF typical/best practice Pin
Richard Deeming24-Mar-16 2:14
mveRichard Deeming24-Mar-16 2:14 
GeneralRe: MVC/EF typical/best practice Pin
Nathan Minier24-Mar-16 2:31
professionalNathan Minier24-Mar-16 2:31 
QuestionWhat wrong with my website Pin
hmanhha23-Mar-16 22:03
hmanhha23-Mar-16 22:03 
AnswerRe: What wrong with my website Pin
John C Rayan23-Mar-16 23:48
professionalJohn C Rayan23-Mar-16 23:48 
AnswerRe: What wrong with my website Pin
#realJSOP24-Mar-16 1:18
mve#realJSOP24-Mar-16 1:18 
GeneralRe: What wrong with my website Pin
hmanhha24-Mar-16 16:06
hmanhha24-Mar-16 16:06 
Questioncombining rewrite maps with an update panel Pin
Member 1061132123-Mar-16 6:37
Member 1061132123-Mar-16 6:37 
AnswerRe: combining rewrite maps with an update panel Pin
John C Rayan24-Mar-16 0:08
professionalJohn C Rayan24-Mar-16 0:08 
GeneralRe: combining rewrite maps with an update panel Pin
Member 1061132124-Mar-16 3:19
Member 1061132124-Mar-16 3:19 
GeneralRe: combining rewrite maps with an update panel Pin
John C Rayan24-Mar-16 3:46
professionalJohn C Rayan24-Mar-16 3:46 
QuestionMVC5 - How do it know? Pin
#realJSOP23-Mar-16 2:48
mve#realJSOP23-Mar-16 2:48 
AnswerRe: MVC5 - How do it know? Pin
#realJSOP23-Mar-16 3:33
mve#realJSOP23-Mar-16 3:33 
AnswerRe: MVC5 - How do it know? Pin
John C Rayan23-Mar-16 3:33
professionalJohn C Rayan23-Mar-16 3:33 
QuestionWhat is difference between form authentication and claim authentication Pin
Tridip Bhattacharjee23-Mar-16 1:27
professionalTridip Bhattacharjee23-Mar-16 1:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.