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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:51:27+00:00 2026-06-14T21:51:27+00:00

Entity Framework or stored procedures / functions Which is better? In which scenarios would

  • 0

Entity Framework or stored procedures / functions

  1. Which is better?
  2. In which scenarios would using stored procedures or Entity Framework be better?
  3. Is the performance of one technology better than the other?

I have used both methods to retrieve and manipulate data and don’t really have a preference. I think stored procedures / function allows us a clearer separation of concerns. But using C# to develop functionality to query and manipulate data does seem more easy.

  • 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-14T21:51:28+00:00Added an answer on June 14, 2026 at 9:51 pm
    1. Which is better?

      • If stored procedure return big data results and/or your connection as slow > EF
      • If you REALLY like SQL and have read a little about use of CURSORS, and staying liking it > SP
    2. In which scenarios would using stored procedures or Entity Framework be better?

      • If you need do complex codes in a small time > EF
      • If you need process biiiig data on database, reviewing records, doing batch updates, using triggers > SP
    3. Is the performance of one technology better than the other?

      • You you get 1000 records in EF, you will have 1000 objects in memory, but, how you work with your code is the main focus here. I did some big data update using SP and it’s really so much fast, because it ON database, no TCP involved, no socket, no traffic.. just read/update. But, you will lost so much time to write good SQL codes…

    Another thing to think. If you use EF, you must prefere to have all you bussines logic in one place, using partial classes or extensions.. you will don’t to have so much logic on yout database.

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

Sidebar

Related Questions

I'm using entity framework 4. I have a stored procedure that just updates one
I am using Entity Framework 4.1 and do sometimes need to call stored procedures.
The ADO.NET Entity Framework (EF) allows you to map stored procedures to functions that
Entity framework is cripplingly slow so I tried using a stored procedure but I
I need advice on using stored procedures with Entity Framwork 4.x to return data
I have this stored procedure, which is mapped in an Entity Framework 4.1 object.
I'm using the Entity Framework (EF) to create a complex type from a stored
Has anyone here used MySQL with the entity framework 4.0 and stored procedures? When
i have a question about the reasonableness of using entity framework only with stored
Ok I've seen this question Entity Framework: Generate Database From Model removes Stored Procedures

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.