Click here to Skip to main content
14,302,714 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
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 
GeneralRe: ASP.NET / EF Core Rant Pin
Marc Clifton23-Aug-19 2:27
protectorMarc 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
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 ? PinPopular
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 
GeneralRe: if you could time-travel ? Pin
Member 798912222-Aug-19 20:32
memberMember 798912222-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.