Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using AddOrUpdate from System.Data.Entity.Migrations
Message
 
À
08/04/2014 15:28:20
Information générale
Forum:
ASP.NET
Catégorie:
Entity Framework
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01598293
Message ID:
01598304
Vues:
30
>I agree with Naomi and Kevin. Don't do this at the application layer.

I really don't understand what you all are proposing. Are you saying to use SPROCs instead of EF? So, your responses don't help me at all in convincing these people not to use EF's AddOrUpdate which comes from the Migrations namespace.

Using SPROCs: That's not going to happen. People here will not permit us to use SPROCs even when I've made a case to use them instead of very complicated LINQ.

Also, SQL Profiler shows that the SQL generated by EF 6.02 or whatever is the latest is not using Merge. It's using either an Insert or an Update.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform