For one of my project, I am using Entity Framework to connect to a SQL Server database. Due to large volume of data like (1000 - 100000) insert/update/delete, I had to use stored procedures with user-defined table types as parameter to improve the performance.
Also, these insert/update/delete operations involve data from multiple other tables as dependent. So, I used stored procedure with proper temp table and CTE with join queries (it is quite a complex JOIN) to achieve the required result.
Achieving the same in Entity Framework (repository patterns) is creating performance issues. We can call stored procedures from Entity Framework also
Now, my question is: which is better in my above scenario?
- Calling stored procedure from Entity Framework (if so, please suggest some articles to achieve it)
- Calling stored procedure from ADO.Net
Thanks in advance.
Udhay