Click here to Skip to main content
14,302,218 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: That weather app... Pin
Mark_Wallace23-Aug-19 8:04
memberMark_Wallace23-Aug-19 8:04 
GeneralRe: That weather app... Pin
dandy7224-Aug-19 4:07
memberdandy7224-Aug-19 4:07 
RantASP.NET / EF Core Rant Pin
Marc Clifton22-Aug-19 4:04
protectorMarc Clifton22-Aug-19 4:04 
GeneralRe: ASP.NET / EF Core Rant Pin
  Forogar  22-Aug-19 4:10
professional  Forogar  22-Aug-19 4:10 
GeneralRe: ASP.NET / EF Core Rant Pin
F-ES Sitecore22-Aug-19 4:29
mveF-ES Sitecore22-Aug-19 4:29 
GeneralRe: ASP.NET / EF Core Rant Pin
RickZeeland22-Aug-19 6:41
mveRickZeeland22-Aug-19 6:41 
GeneralRe: ASP.NET / EF Core Rant Pin
Marc Clifton22-Aug-19 8:14
protectorMarc Clifton22-Aug-19 8:14 
GeneralRe: ASP.NET / EF Core Rant Pin
F-ES Sitecore22-Aug-19 21:57
mveF-ES Sitecore22-Aug-19 21:57 
Marc Clifton wrote:
you go for the most specific instantiator you can with the information you have in the service

Unless I misunderstood your original post you had two constructors with a single param, so how does the DI know which is "more specific"?


Marc Clifton wrote:
So you have one thing for adding services, but another thing for getting them?

Yes, it's called the single responsibility principal. By separating the two if you want to use your own resolver, you can.


Marc Clifton wrote:
why can't the tool do both gracefully?


Why can't my bike float me to the ground like a parachute? The more things a tool does, the worse it tends to be at them. EF can use SPs and raw SQL, but you're not going to have as much flexibility or control, so if you want to do anything advanced you're probably going to have a bad time.
GeneralRe: ASP.NET / EF Core Rant Pin
Marc Clifton23-Aug-19 2:27
protectorMarc Clifton23-Aug-19 2:27 
GeneralRe: ASP.NET / EF Core Rant Pin
F-ES Sitecore23-Aug-19 2:38
mveF-ES Sitecore23-Aug-19 2:38 
GeneralRe: ASP.NET / EF Core Rant Pin
Marc Clifton23-Aug-19 2:45
protectorMarc Clifton23-Aug-19 2:45 
GeneralRe: ASP.NET / EF Core Rant Pin
Marc Clifton23-Aug-19 2:50
protectorMarc Clifton23-Aug-19 2:50 
Generalif you could time-travel ? Pin
BillWoodruff22-Aug-19 3:32
mveBillWoodruff22-Aug-19 3:32 
GeneralRe: if you could time-travel ? Pin
musefan22-Aug-19 3:38
membermusefan22-Aug-19 3:38 
GeneralRe: if you could time-travel ? Pin
Nick Ruppert23-Aug-19 6:15
memberNick Ruppert23-Aug-19 6:15 
GeneralRe: if you could time-travel ? Pin
OriginalGriff22-Aug-19 3:38
protectorOriginalGriff22-Aug-19 3:38 
GeneralRe: if you could time-travel ? Pin
Slow Eddie23-Aug-19 2:15
professionalSlow Eddie23-Aug-19 2:15 
GeneralRe: if you could time-travel ? Pin
OriginalGriff23-Aug-19 2:23
protectorOriginalGriff23-Aug-19 2:23 
GeneralRe: if you could time-travel ? Pin
Slow Eddie23-Aug-19 2:33
professionalSlow Eddie23-Aug-19 2:33 
GeneralRe: if you could time-travel ? PinPopular
q1213q22-Aug-19 3:40
memberq1213q22-Aug-19 3:40 
GeneralRe: if you could time-travel ? Pin
Mark_Wallace23-Aug-19 8:05
memberMark_Wallace23-Aug-19 8:05 
GeneralRe: if you could time-travel ? Pin
DRHuff24-Aug-19 9:08
memberDRHuff24-Aug-19 9:08 
GeneralRe: if you could time-travel ? Pin
Jim Meadors22-Aug-19 3:41
memberJim Meadors22-Aug-19 3:41 
GeneralRe: if you could time-travel ? Pin
dandy7222-Aug-19 4:21
memberdandy7222-Aug-19 4:21 
GeneralRe: if you could time-travel ? Pin
CodeZombie6223-Aug-19 1:01
memberCodeZombie6223-Aug-19 1:01 

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.