- 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: C# Update
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 "C# Update"
Collapse
-
Link2SQL support has been dropped which in theory means it is now redundant. It has been replaced by ADO.NET EF which will probably be dropped again in a year's time when MS realises that developers are going in for something else that is more powerful and feature rich.
-
Originally posted by Jaws View PostUpdates to Linq To SQL in .NET 4.0 http://damieng.com/blog/2009/06/01/l...nges-in-net-40
I've found the main problem with EF (1.0) is that you can't use your own classes with it, you're forced down the route of auto-generated partial classes (very similar to typed datasets). This is a real pain when you want to use a validation framework or anything else which may need attributes on your entity properties. It can also go a bit "funny" if your DB schema changes.
Leave a comment:
-
Originally posted by jmo21 View PostLinq2Sql is not being developed any more, and Entity Framework is just as easy to use.
I've found the main problem with EF (1.0) is that you can't use your own classes with it, you're forced down the route of auto-generated partial classes (very similar to typed datasets). This is a real pain when you want to use a validation framework or anything else which may need attributes on your entity properties. It can also go a bit "funny" if your DB schema changes.
Leave a comment:
-
Linq2Sql is not being developed any more, and Entity Framework is just as easy to use.
Leave a comment:
-
Linq2SQL gets my vote. Stupidly easy and quick, you can knock out a middlewear layer in about 5 minutes if you really wanted to.
Leave a comment:
-
But Linq2SQL is dropped isn't it, not being developed any more?
Think about it... any giant library has some overhead. They shine on larger projects where the overhead gets averaged out, and the code is more consistent than 10 developers all doing the same thing their own way.
Leave a comment:
-
Originally posted by suityou01 View PostSo not more productive?
I have used it in the past (not out of choice) and it just adds a database agnostic wrapper around ADO.NET, with a few helper methods for creating stored procedure commands etc.
IMO LinqToSQL is a better choice than Entity Framework (v 1.0 anyway) because it's more flexible / less annoying to use.
Leave a comment:
-
Originally posted by suityou01 View PostSo not more productive?
Take for example (bad one) the ancient logging block. By the time you had installed it, configured it, referenced it, programmed to it's interface, figured out why it didn't work etc you were often better off rolling your own for what you actually needed rather than the subset of what it tried to offer.
When it so happens that what you want or need was exactly one of the scenarios envisaged then it may well help. It may also help (bizarrely) that having experimented and discovered it can't do what you want you don't need to go there again. Equally, if you know exactly what you want you may be able to bend your approach so it fits better.
So, overall, over time yes it can increase productivity. But, in a one off minor project it's doubtful. Though I dare say it won't be the last time I get proved wrong.
Leave a comment:
-
It depends. It takes a few minutes to write code to pull data from a query into your object. For each query. If you use a framework, it is less setup per query, but a much bigger overhead getting the thing set up in the first place.
Spring is the same... writing a single JSP page and a servlet is way faster than setting up all your beans and things, but when you have 100 pages it can go the other way.
Also, development speed is not the biggest thing about such frameworks.
Leave a comment:
-
Originally posted by ASB View PostYes. No, Yes.
Originally posted by MSDNThe Data Access Application Block provides the following benefits:
* It uses the functionality provided by ADO.NET 2.0 and with it, you can use ADO.NET functionality along with the application block's functionality.
* It reduces the need to write boilerplate code to perform standard tasks.
* It helps maintain consistent data access practices, both within an application and across the enterprise.
* It reduces difficulties in changing the database type.
* It relieves developers from learning different programming models for different types of databases.
* It reduces the amount of code that developers must write when they port applications to different types of databases.
Leave a comment:
-
Ops, sorry. I misread your post. S#arp isn't gonna help for a desktop app.
Leave a comment:
-
Originally posted by d000hg View PostSo it's a desktop app talking to a DB? If it's a small project I'd not bother with all that middleware stuff... if it just has to work. A little desktop app shouldn't get ideas above its station, to be all Enterprisey.
If it's bigger then the story may change somewhat. Do you want to appear productive, or find a way to drag it out and learn stuff?
Leave a comment:
-
So it's a desktop app talking to a DB? If it's a small project I'd not bother with all that middleware stuff... if it just has to work. A little desktop app shouldn't get ideas above its station, to be all Enterprisey.
If it's bigger then the story may change somewhat. Do you want to appear productive, or find a way to drag it out and learn stuff?
Leave a comment:
-
Originally posted by HairyArsedBloke View PostI'm probably the last person to give techie advice, but I've been trying out S#arp Architecture on a project. MVC/NHib/SQL etc. I'm using the Telerick opensource MVC JQuery thingies too.
The last thing I touched was Enterprise Library 4.1. Had some good stuff in there, nullable objects, serialisable thingies. Lots of cool stuff.
Will take a peek at the aforementioned, thanks.
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
- Streamline Your Retirement with iSIPP: A Solution for Contractor Pensions Sep 1 09:13
- Making the most of pension lump sums: overview for contractors Sep 1 08:36
- Umbrella company tribunal cases are opening up; are your wages subject to unlawful deductions, too? Aug 31 08:38
- Contractors, relabelling 'labour' as 'services' to appear 'fully contracted out' won't dupe IR35 inspectors Aug 31 08:30
- How often does HMRC check tax returns? Aug 30 08:27
- Work-life balance as an IT contractor: 5 top tips from a tech recruiter Aug 30 08:20
- Autumn Statement 2023 tipped to prioritise mental health, in a boost for UK workplaces Aug 29 08:33
- Final reminder for contractors to respond to the umbrella consultation (closing today) Aug 29 08:09
- Top 5 most in demand cyber security contract roles Aug 25 08:38
- Changes to the right to request flexible working are incoming, but how will contractors be affected? Aug 24 08:25
Leave a comment: