Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8461153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:48:05+00:00 2026-06-10T13:48:05+00:00

I have a data layer built on Linq-2-SQL in .net 3.5. We’re looking at

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T13:48:06+00:00Added an answer on June 10, 2026 at 1:48 pm

    Can we still have a customized .tt type generating system (or something similar)?

    Yes. In VS 2012 you can use a DbContext generator which uses a T4 template to generate your DbContext and persistence-ignorant classes.

    Once you add it and point it to your edmx file, you can modify the templates all you want to customize the output.

    If you’re using VS.NET 2010, then you can install the EF 5.x DbContext Generator for C# extension from the Visual Studio Gallery to install the template generator and have it added to the “Add Item” menu in VS.NET.

    Can we still use our own defined sprocs for CRUD?

    Yes, it’s simply a matter of mapping the conceptual model (what you work with in the edmx files) to the physical model (the representation of the database). In the mapping, you’d specify the stored procedure instead of having it done dynamically.

    Julie Lerman goes into detail on how to map your CRUD operations to stored procedures in the section of the MSDN documentation titled “Stored Procedures in the Entity Framework“.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF service that uses LINQ to SQL for its data layer.
I have a data access layer (DAL) that is written in ASP.NET 3.5 and
I have created a Data Access Layer using .NET. Everywhere that I update a
I have a three tier system, SQL Server backend, hand written data access layer,
I have a data access layer, a business logic layer and a presentation layer
I have a project called Data which is a data layer. In this project,
I have an existing web app that has a data layer and a bll
I'm working on a project in which we have a database, data layer (entity
I'm writing a data access layer. It will have C# 2 and C# 3
I have a service, business and data access layer. In which layer should I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.