I have a data layer built on Linq-2-SQL in .net 3.5. We're looking at migrating to .Net 4. soonish. When we started the original development I was interested in using EF for the data layer, but found it wasn't really an option in .Net 3.5. Now that we're upgrading, I'm thinking it over again.
I realise that L2S is still supported in .Net4, however I would be keen to switch to the more active area of development for the future proofing of a system that's likely to be core to the business for a fair while. (My understanding is based on statements such as "We said we would improve the core of it (L2S) and add customer requests where it makes sense but that Entity Framework would be the primary focus." from Damien Guard in the comments to this post.
What complicates it a bit is that we have made a few mods to our L2S implementation:
- We've customized the .tt generating file a fair bit, and L2ST4 slightly.
- We're using stored procs for all CRUD operations (which we generate automatically), as this allows us to switch on/off a granular audit trail on specific tables as we need.
Most of the rest of what we use I know will be ok because I've done it myself in EF4 (in fact a lot of it started life on an EF4 database), but I wanted to know if the above customizations are going to be problems.
So:
- Can we still have a customized .tt type generating system (or something similar)?
- Can we still use our own defined sprocs for CRUD?
NB: If we used EF I would probably use the Database First version.
sql_variantfields anywhere in your database?