EFCore.SqlServer.WithNoLock icon indicating copy to clipboard operation
EFCore.SqlServer.WithNoLock copied to clipboard

With Change Tracking

Open bbakermmc opened this issue 7 years ago • 2 comments

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

bbakermmc avatar Jun 23 '18 06:06 bbakermmc

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

tangdf avatar Jun 28 '18 07:06 tangdf

@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?

bodhisatta1984 avatar Sep 28 '18 05:09 bodhisatta1984