File tree Expand file tree Collapse file tree 1 file changed +18
-21
lines changed
Expand file tree Collapse file tree 1 file changed +18
-21
lines changed Original file line number Diff line number Diff line change @@ -273,27 +273,24 @@ public void DmlPlansAreProperlyHandled()
273273
274274 using ( session . BeginTransaction ( ) )
275275 {
276- using ( var spy = new SqlLogSpy ( ) )
277- {
278- var listOfGuids = new [ ] { "UNKNOWN" , "UNKNOWN2" } . ToList ( ) ;
279- db . Customers . Where ( x => listOfGuids . Contains ( x . CustomerId ) ) . Update (
280- x => new Customer
281- {
282- CompanyName = "Constant1"
283- } ) ;
284-
285- db . Customers . Where ( x => listOfGuids . Contains ( x . CustomerId ) )
286- . Update (
287- x => new Customer
288- {
289- ContactName = "Constant1"
290- } ) ;
291-
292- Assert . That (
293- cache . Count ,
294- Is . EqualTo ( 0 ) . Or . EqualTo ( 2 ) ,
295- "Query plans should either be cached separately or not cached at all." ) ;
296- }
276+ var listOfGuids = new [ ] { "UNKNOWN" , "UNKNOWN2" } . ToList ( ) ;
277+ db . Customers . Where ( x => listOfGuids . Contains ( x . CustomerId ) ) . Update (
278+ x => new Customer
279+ {
280+ CompanyName = "Constant1"
281+ } ) ;
282+
283+ db . Customers . Where ( x => listOfGuids . Contains ( x . CustomerId ) )
284+ . Update (
285+ x => new Customer
286+ {
287+ ContactName = "Constant1"
288+ } ) ;
289+
290+ Assert . That (
291+ cache . Count ,
292+ Is . EqualTo ( 0 ) . Or . EqualTo ( 2 ) ,
293+ "Query plans should either be cached separately or not cached at all." ) ;
297294 }
298295 }
299296
You can’t perform that action at this time.
0 commit comments