Click here to Skip to main content
15,915,513 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's MCP Sander Rossel to you Pin
Sander Rossel28-Nov-13 9:08
professionalSander Rossel28-Nov-13 9:08 
GeneralRe: That's MCP Sander Rossel to you Pin
PIEBALDconsult28-Nov-13 9:15
mvePIEBALDconsult28-Nov-13 9:15 
GeneralRe: That's MCP Sander Rossel to you Pin
_Maxxx_28-Nov-13 11:38
professional_Maxxx_28-Nov-13 11:38 
GeneralRe: That's MCP Sander Rossel to you Pin
Mycroft Holmes28-Nov-13 11:46
professionalMycroft Holmes28-Nov-13 11:46 
GeneralRe: That's MCP Sander Rossel to you Pin
PIEBALDconsult28-Nov-13 12:00
mvePIEBALDconsult28-Nov-13 12:00 
GeneralRe: That's MCP Sander Rossel to you Pin
Mycroft Holmes28-Nov-13 15:46
professionalMycroft Holmes28-Nov-13 15:46 
GeneralRe: That's MCP Sander Rossel to you Pin
_Maxxx_28-Nov-13 16:27
professional_Maxxx_28-Nov-13 16:27 
GeneralRe: That's MCP Sander Rossel to you Pin
_Maxxx_28-Nov-13 15:31
professional_Maxxx_28-Nov-13 15:31 
I don't think so, really. EF is an ORM - so it creates the interface between you and the DB so that you can tell it to save, retrieve objects from the data store.

Linq to SQL is more ;low level; in that it just creates an SQL statement from C# code, essentially.

In my experience, especially with volatile or large systems, using any ORM is more trouble than it is worth, if you have the SQL skillz in house.

It strikes me as a bit like the drag-and-drop windows development that always used to be shown off when VS was demonstrated - sure, you could knock up a pretty convincing app in a few minutes - but once you got into 'real' development, it all needed to be done 'properly'

I have worked on a few systems using ORM in one way shape or form, and all have suffered through issues - which to be fair may have been through a lack of understanding of the ORM involved, but were real nonetheless.

Having a DAL that accesses the database, that is under your control and (my preference) accesses stored procedures to do the work of storage and retrieval is the most efficient solution; it may take slightly longer to get up a working model, but is more flexible and obviously maintainable in the long run.

As a prime example of EF etc. being used badly, is number of systems that require a datasource for a combo - say countries of the world.

Using my own DAL and SPs I would have an SP that returns a list of country names with their IDs
Using an ORM I have seen time and again the collection returned is countries, states, towns cities etc. etc., causing in some cases a separate query or queries to be run for every country.

Now I am sure it is possible to configure it to not do that, but the fact that I have seen it done so often makes me think that these sort of issues occur more often than not.
MVVM # - I did it My Way
___________________________________________
Man, you're a god. - walterhevedeich 26/05/2011

.\\axxx
(That's an 'M')

GeneralRe: That's MCP Sander Rossel to you Pin
Mycroft Holmes28-Nov-13 15:50
professionalMycroft Holmes28-Nov-13 15:50 
GeneralRe: That's MCP Sander Rossel to you Pin
_Maxxx_28-Nov-13 16:26
professional_Maxxx_28-Nov-13 16:26 
GeneralRe: That's MCP Sander Rossel to you Pin
PIEBALDconsult29-Nov-13 1:53
mvePIEBALDconsult29-Nov-13 1:53 
GeneralRe: That's MCP Sander Rossel to you Pin
PIEBALDconsult29-Nov-13 1:49
mvePIEBALDconsult29-Nov-13 1:49 
GeneralRe: That's MCP Sander Rossel to you Pin
Jörgen Andersson28-Nov-13 12:06
professionalJörgen Andersson28-Nov-13 12:06 
GeneralRe: That's MCP Sander Rossel to you Pin
User 483504728-Nov-13 8:27
User 483504728-Nov-13 8:27 
GeneralRe: That's MCP Sander Rossel to you Pin
Sander Rossel28-Nov-13 9:09
professionalSander Rossel28-Nov-13 9:09 
GeneralRe: That's MCP Sander Rossel to you Pin
User 483504728-Nov-13 9:23
User 483504728-Nov-13 9:23 
GeneralRe: That's MCP Sander Rossel to you Pin
Sander Rossel28-Nov-13 9:49
professionalSander Rossel28-Nov-13 9:49 
GeneralRe: That's MCP Sander Rossel to you Pin
PIEBALDconsult28-Nov-13 9:56
mvePIEBALDconsult28-Nov-13 9:56 
GeneralRe: That's MCP Sander Rossel to you Pin
Eddy Vluggen28-Nov-13 10:28
professionalEddy Vluggen28-Nov-13 10:28 
GeneralRe: That's MCP Sander Rossel to you Pin
Sander Rossel28-Nov-13 10:29
professionalSander Rossel28-Nov-13 10:29 
GeneralRe: That's MCP Sander Rossel to you Pin
BillWoodruff28-Nov-13 11:36
professionalBillWoodruff28-Nov-13 11:36 
GeneralRe: That's MCP Sander Rossel to you Pin
Sander Rossel28-Nov-13 17:39
professionalSander Rossel28-Nov-13 17:39 
GeneralRe: That's MCP Sander Rossel to you Pin
Jörgen Andersson28-Nov-13 12:08
professionalJörgen Andersson28-Nov-13 12:08 
GeneralRe: That's MCP Sander Rossel to you Pin
Sander Rossel28-Nov-13 17:48
professionalSander Rossel28-Nov-13 17:48 
GeneralRe: That's MCP Sander Rossel to you Pin
Jörgen Andersson28-Nov-13 20:38
professionalJörgen Andersson28-Nov-13 20:38 

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.