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 810391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:52:37+00:00 2026-05-15T00:52:37+00:00

Application : I am working on one mid-large size application which will be used

  • 0

Application :

I am working on one mid-large size application which will be used as a product, we need to decide on our DAL layer. Application UI is in Silverlight and DAL layer is going to be behind service layer. We are also moving ahead with domain model, so our DB tables and domain classes are not having same structure. So patterns like Data Mapper and Repository will definitely come into picture.

I need to design DAL Layer considering below mentioned factors in priority manner

  1. Speed of Development with above average performance
  2. Maintenance
  3. Future support and stability of the technology
  4. Performance

Limitation :

1) As we need to strictly go ahead with microsoft, we can not use NHibernate or any other ORM except EF 4.0

2) We can use any code generation tool (Should be Open source or very cheap) but it should only generate code in .Net, so there would not be any licensing issue on per copy basis.

Questions

  1. I read so many articles about EF 4.0, on outset it looks like that it is still lacking in features from NHibernate but it is considerably better then EF 1.0

So, Do you people feel that we should go ahead with EF 4.0 or we should stick to ADO .Net and use any code geneartion tool like code smith or any other you feel best

  1. Also i need to answer questions like what time it will take to port application from EF 4.0 to ADO .Net if in future we stuck up with EF 4.0 for some features or we are having serious performance issue.

  2. In reverse case if we go ahead and choose ADO .Net then what time it will take to swith to EF 4.0

Lastly..as i was going through the article i found the code only approach (with POCO classes) seems to be best suited for our requirement as switching is really easy from one technology to other.

Please share your thoughts on the same and please guide on the above questions

  • 1 1 Answer
  • 1 View
  • 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-05-15T00:52:38+00:00Added an answer on May 15, 2026 at 12:52 am

    Using EF4 will save you a lot of manual coding – or code generation. That alone seems to justify using it – the best code and the only code guaranteed to be bug-free is the code you don’t need to write.

    EF4 and NHibernate and the like are very powerful tools that can handle the most demanding and complicated business requirements – things like inheritance in database tables and a lot more. They do add some overhead, however – and they’re not always easy to learn and pick up.

    So my provocative question would be: why not use Linq-to-SQL? If you only need SQL Server as a backend, if your mappings are almost always a 1:1 mapping between a table and a class in your domain model, this could be a lot easier than using either EF4 or NHibernate.

    Linq-to-SQL is definitely easier and faster than EF4 – it’s just a rather thin layer on top of your database. It’s a lot easier than learning NHibernate – no messy mapping syntax to learn, you have support through a visual designer. And it’s simple enough that you can even get in there and manipulate the code generation using e.g. T4 templates (see Damien Guard’s Linq-to-SQL templates).

    Linq-to-SQL is 100% supported even in .NET 4 / VS 2010, so there’s a really good chance it will still be around in VS2012 (or whatever the next one will be called). So all those doomsday predictions about its demise are largely exaggerated – I wouldn’t worry about it’s future proofness for a second.

    UPDATE: Some performance comparisons between Linq-to-SQL and EF:

    • Entity Framework and Linq-to-SQL Performance Comparison
    • Looking at EF Performance – some surprises
    • Entity Framework and LINQ to SQL

    In general, Linq-to-SQL seems to have an edge on query performance, but EF seems to be doing better on updates.

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

Sidebar

Ask A Question

Stats

  • Questions 472k
  • Answers 472k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can determine if the page your control is being… May 16, 2026 at 3:31 am
  • Editorial Team
    Editorial Team added an answer Apparently, you can't build it from the SDK 'cause it… May 16, 2026 at 3:31 am
  • Editorial Team
    Editorial Team added an answer Apparently if I add the footer before setting the Adapter,… May 16, 2026 at 3:31 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.