Is it possible to add a where clause to objects updated through objectcontext?
var _Customer = this.objectcontext.Customers.where(x=>x.CustomerID == 1).First();
_Customer.FirstName = "Dan";
_Customer.AddWhereOnUpdateCondition('FirstName' != 'Dan' );
_objectcontext.SaveChanges();
Here is what I'm looking for:
https://weblogs.asp.net/pwelter34/entit ... re-queries
Would these extension methods work with your provider for MySQL?
Sql executed would look like:
Update Customer set FirstName = 'Dan' where FirstName != 'Dan' //0 rows affected
Is it possible to add a where clause to update through objectcontext?
Re: Is it possible to add a where clause to update through objectcontext?
We do not test third-party extensions. Please contact the extension vendor to find out if it was designed for Devart EF providers as well.KW wrote:Here is what I'm looking for:
https://weblogs.asp.net/pwelter34/entit ... re-queries
Would these extension methods work with your provider for MySQL?
Re: Is it possible to add a where clause to update through objectcontext?
This is not something that is currently supported correct?
Re: Is it possible to add a where clause to update through objectcontext?
We can't tell this for sure. Please contact the extension vendor to find out if it was designed for Devart EF providers as well.