Originally posted by LittlestHobbo
View Post
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: LINQ to SQL, Entity Framework etc
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "LINQ to SQL, Entity Framework etc"
Collapse
-
-
Originally posted by themistry View PostSee my points inline:
I was thinking about using partial classes as part of my suggested wrapper solution..
I may be stupid but i'm not one of these IT know it all bores -
If you provide some references to your learning material then I might take some of your patronising advice onboard, then you can feel all smug and clever.
Of course optimisation isn't a bad thing, but I have heard of at least three instances where juniour developers have picked up linq to sql used all the wizzy stuff and ended up making thousands of round trips to the db etc etc, my beef is that it can be dangourous, the last Blue chip I was at they were trying to get the BA's to wright applications..mainly because of the RAD and Linq stuff.
I'm sure I'll get a smart alec response...
Leave a comment:
-
So how have you fitted it into the previous architecture best practisce patterns?
Whilst I can see the benefits of reduced coding, if you pull the database into the Business Tier you loose the benefits of OO and creating a Domain Specific Language.
I've been torn between wrapping the data entities with my business objects, or creating a translation layer between the data and business entities. (This is what my old DataLayers used to do anyway)
I like the generic approach for querying that linq provides, its just trying to fit it into previous best practices that I am struggling with.
I tried custom mappings onto my Business Entities, but ended up in a world of pooh with asociations and cyclic references, and not much documentation.. It just became really clunky...
Leave a comment:
-
Originally posted by DimPrawn View PostNot Linq, just Linq to SQL (and the support for the designer in VS.NET).
So all you Linq to SQL code will still run in .NET 4.0, but you will not be able to develop it further in the VS.NET 2010. You'll be encouraged to rewrite the whole thing in Linq to Entities and use the Entity Framework Designer (which is much more complex and hated).
All they had to do was allow extendable providers for more complex usage situations (i.e. bad architecture ). I have huge volumes going through a Linq To SQL backend with zero issues.
People mistake simplicity for RAD or POC. Why is the world run by thickos. I think ATW has had a hand in this.
TM
Leave a comment:
-
Originally posted by themistry View Postlinq is being dropped? I had no idea.
Ok, well done ms
So all you Linq to SQL code will still run in .NET 4.0, but you will not be able to develop it further in the VS.NET 2010. You'll be encouraged to rewrite the whole thing in Linq to Entities and use the Entity Framework Designer (which is much more complex and hated).
Leave a comment:
-
Originally posted by DimPrawn View PostSadly though, it's a techno dead end. Apart from bug fixing, it ain't going to be in .NET 4.0
Dropped, never to be mentioned again.
Looks like you'll have plenty of work porting it to the much more complex Entity Framework (which is universally despised by everyone that used it!).
GRRRRRRRR!!!
Leave a comment:
-
Originally posted by DimPrawn View PostSadly though, it's a techno dead end. Apart from bug fixing, it ain't going to be in .NET 4.0
Dropped, never to be mentioned again.
Looks like you'll have plenty of work porting it to the much more complex Entity Framework (which is universally despised by everyone that used it!).
Ok, well done ms
Leave a comment:
-
Originally posted by LittlestHobbo View PostLinq to sql - I've been using it on a new project...been struggling like mad to fit it into the usual enterprise patterns (Process, Entities, Data Layer etc).
Use partial classes to compose your Process tier from the linq context, the linq context itself becomes your entity tier (and very powerful too!) and the data layer should be what it was meant to be, a data later (physical database, xml files etc).
Also, if anyone is using it for gods sake run a sql profiler and double check the sql it runs, i got a nasty surprise. (DeferredLoading etc)
So optimisation is a bad thing?
I'd been reading lots of blogs from people going on about how great it is...and been scratching my head...thinking i must be a dumb flip - 'cause at best fitting it into ntier, Domain Models, wcf etc is ugly. Basically you end up with the database model embedded in your business logic domain. (sucks)
I think you hit the nail on the head. You must be dumb. And WCF is ugly? What does that mean? It's probably the most refined service technology available todate.
Whilst it would have been dull, I could of written my data layer in half time with sprocs and datareaders, and i bet it would of performed better, as least I'd know what going on!
think you are missing the point here. And I can write my complex entity and process tiers within minutes. So you are doing something wrong. Sprocs...
Anyone come across any good architecture guides for it?
Haven't checked out the Entity Framework yet...If they can get it right think it must be the way forwards...
Leave a comment:
-
Originally posted by themistry View PostWe have used Linq to SQL and Linq to XML extensively (in fact it makes the backend of at least 7 services) in an enterprise project I'm working on.
It is quite simply amazing, and really kicks to earth Hibernate and its .net equivilent.
Fantastic technologies where ms have got something damm right for a change.
TM
Dropped, never to be mentioned again.
Looks like you'll have plenty of work porting it to the much more complex Entity Framework (which is universally despised by everyone that used it!).
Leave a comment:
-
We have used Linq to SQL and Linq to XML extensively (in fact it makes the backend of at least 7 services) in an enterprise project I'm working on.
It is quite simply amazing, and really kicks to earth Hibernate and its .net equivilent.
Fantastic technologies where ms have got something damm right for a change.
TM
Leave a comment:
-
Linq to sql - I've been using it on a new project...been struggling like mad to fit it into the usual enterprise patterns (Process, Entities, Data Layer etc).
Also, if anyone is using it for gods sake run a sql profiler and double check the sql it runs, i got a nasty surprise. (DeferredLoading etc)
I'd been reading lots of blogs from people going on about how great it is...and been scratching my head...thinking i must be a dumb **** - 'cause at best fitting it into ntier, Domain Models, wcf etc is ugly. Basically you end up with the database model embedded in your business logic domain. (sucks)
Whilst it would have been dull, I could of written my data layer in half time with sprocs and datareaders, and i bet it would of performed better, as least I'd know what going on!
Anyone come across any good architecture guides for it?
Haven't checked out the Entity Framework yet...If they can get it right think it must be the way forwards...Last edited by LittlestHobbo; 12 November 2008, 22:10.
Leave a comment:
-
Originally posted by voodooflux View PostNot yet (it's another one of those things on my "must-take-a-look-at" list) but I've also seen it widely panned - there's even a "no confidence" petition.
Leave a comment:
-
I guess most people are steering well clear of the latest V1.0 MS technologies, since they seem to have a habit of:
Not working
Disappearing
Being replaced by another V1.0 technology that is not compatible.
Leaving you up sheet creek without a paddle.
Leave a comment:
-
Originally posted by DimPrawn View PostAnyone here used the Entity Framework (LINQ to Entities)? This is the future, but I've read a lot of scathing reviews of this V1 MS technology.
Leave a comment:
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Life Insurance services Today 10:21
- Relevant Life Insurance Services Today 10:08
- Will umbrella company regulation spark mergers and acquisitions? Today 09:24
- Critical Illness Insurance for Contractors: Protect Yourself When It Matters Most Yesterday 16:26
- Relevant Life Insurance for Contractors with a Limited Company Yesterday 16:14
- Life Insurance for Contractors: Why it’s Essential Yesterday 16:09
- Guide to Income Protection Insurance for Contractors Yesterday 16:00
- Treasury minister told six actions can save contractor umbrella sector from ‘existential’ crisis Yesterday 09:40
- Critical Illness Services Jan 13 16:41
- Income Protection Services Jan 13 16:35
Leave a comment: