tangdf / EFCore.SqlServer.WithNoLock

Apache License 2.0
19 stars 10 forks source link

With Change Tracking #1

Open bbakermmc opened 6 years ago

bbakermmc commented 6 years ago

Can you make an extension that does the same thing but for With_Change_Tracking?

https://docs.microsoft.com/en-us/sql/relational-databases/system-functions/with-change-tracking-context-transact-sql?view=sql-server-2017

tangdf commented 6 years ago

@bbakermmc https://github.com/tangdf/EFCore.SqlServer.WithChangeTracingContext

bodhisatta1984 commented 5 years ago

@tangdf This is a perfect extension if you use only lambda expression. Can you please add support to linq queries too. Then this would be very helpful. e.g. var x = from item in _wpcDbContext.WpcItems.WithNoLock() where item.Sku == request.Sku select new ProxyWpcItems() { Sku = item.Sku }

In above mentioned case if (tableExpression is WithNoLockTableExpression) is coming as false. Can you please help with this?