Click here to Skip to main content
15,895,740 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
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 
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 
F-ES Sitecore wrote:
so how does the DI know which is "more specific"?


Well, one is of the form Foo<Bar> and the other is just Foo. That seems sufficient to distinguish which to use.

Oops, hit Post Message.

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


OK, point taken, though personally I find that to be a bit too much separation.

F-ES Sitecore wrote:
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.


Agreed, but in my case, I want to do something very specific and simple involving several table joins and I don't want to write the class models for each table so EF can make the query. For me, it's a case of the tool which as a method that looks like it should work but has severe limitations. Tools (we're talking software tools, not specious analogies) should not be designed so they get in the way when I want to take control, and shouldn't require me to write additional otherwise useless layers of code.

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 ? Pin
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 ? Pin
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 
GeneralRe: if you could time-travel ? Pin
Jim Meadors22-Aug-19 3:41
Jim Meadors22-Aug-19 3:41 
GeneralRe: if you could time-travel ? Pin
dandy7222-Aug-19 4:21
dandy7222-Aug-19 4:21 
GeneralRe: if you could time-travel ? Pin
CodeZombie6223-Aug-19 1:01
CodeZombie6223-Aug-19 1:01 
GeneralRe: if you could time-travel ? Pin
kalberts22-Aug-19 20:32
kalberts22-Aug-19 20:32 

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.