Click here to Skip to main content
15,894,720 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
dandy7222-Aug-19 5:59
dandy7222-Aug-19 5:59 
GeneralRe: That weather app... Pin
ZurdoDev22-Aug-19 6:14
professionalZurdoDev22-Aug-19 6:14 
GeneralRe: That weather app... Pin
GuyThiebaut22-Aug-19 6:21
professionalGuyThiebaut22-Aug-19 6:21 
GeneralRe: That weather app... Pin
Mark_Wallace23-Aug-19 8:04
Mark_Wallace23-Aug-19 8:04 
GeneralRe: That weather app... Pin
dandy7224-Aug-19 4:07
dandy7224-Aug-19 4:07 
RantASP.NET / EF Core Rant Pin
Marc Clifton22-Aug-19 4:04
mvaMarc 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
professionalF-ES Sitecore22-Aug-19 4:29 
If your solution uses DI and you create ambiguous constructors then the only possibly outcome is failure. That's not a failure of DI, it is you using it in ways it is not intended to work. You can't throw a bike off a cliff and complain it didn't float to the ground.

As for getting services you've added to the service collection you use IServiceProvider to do that, the service collection is exactly what it says, a collection of services. If you want a given service you get it from the service provider.

As for EF and direct\raw SQL etc, EF is an ORM, if need to use raw sql, stored procs etc then it is the wrong tool for the job.

So use the right tool for the right job, and use those tools as they are intended to be used and you'll be fine.
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
mvaMarc Clifton22-Aug-19 8:14 
GeneralRe: ASP.NET / EF Core Rant Pin
F-ES Sitecore22-Aug-19 21:57
professionalF-ES Sitecore22-Aug-19 21:57 
GeneralRe: ASP.NET / EF Core Rant Pin
Marc Clifton23-Aug-19 2:27
mvaMarc Clifton23-Aug-19 2:27 
GeneralRe: ASP.NET / EF Core Rant Pin
F-ES Sitecore23-Aug-19 2:38
professionalF-ES Sitecore23-Aug-19 2:38 
GeneralRe: ASP.NET / EF Core Rant Pin
Marc Clifton23-Aug-19 2:45
mvaMarc Clifton23-Aug-19 2:45 
GeneralRe: ASP.NET / EF Core Rant Pin
Marc Clifton23-Aug-19 2:50
mvaMarc Clifton23-Aug-19 2:50 
Generalif you could time-travel ? Pin
BillWoodruff22-Aug-19 3:32
professionalBillWoodruff22-Aug-19 3:32 
GeneralRe: if you could time-travel ? Pin
musefan22-Aug-19 3:38
musefan22-Aug-19 3:38 
GeneralRe: if you could time-travel ? Pin
Nick Ruppert23-Aug-19 6:15
Nick Ruppert23-Aug-19 6:15 
GeneralRe: if you could time-travel ? PinPopular
OriginalGriff22-Aug-19 3:38
mveOriginalGriff22-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
mveOriginalGriff23-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
User 483504722-Aug-19 3:40
User 483504722-Aug-19 3:40 
GeneralRe: if you could time-travel ? Pin
Mark_Wallace23-Aug-19 8:05
Mark_Wallace23-Aug-19 8:05 
GeneralRe: if you could time-travel ? Pin
DRHuff24-Aug-19 9:08
DRHuff24-Aug-19 9:08 

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.