File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
Orm/Xtensive.Orm.Tests.Sql Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1- // Copyright (C) 2015 Xtensive LLC.
2- // All rights reserved.
3- // For conditions of distribution and use, see license.
4- // Created by: Alexey Kulakov
5- // Created: 2015.02.06
1+ // Copyright (C) 2009-2022 Xtensive LLC.
2+ // This code is distributed under MIT license terms.
3+ // See the License.txt file in the project root for more information.
64
75using System ;
86using System . Linq ;
@@ -220,7 +218,9 @@ private void DropSchema(Catalog catalog)
220218 dropBatch = SqlDml . Batch ( ) ;
221219 }
222220 dropBatch . Add ( SqlDdl . Drop ( view ) ) ;
223- schema . Tables . Remove ( schema . Tables [ view . Name ] ) ;
221+ if ( schema . Tables [ view . Name ] != null ) {
222+ _ = schema . Tables . Remove ( schema . Tables [ view . Name ] ) ;
223+ }
224224 }
225225
226226 foreach ( var schemaTable in schema . Tables ) {
Original file line number Diff line number Diff line change 1- // Copyright (C) 2003-2010 Xtensive LLC.
2- // All rights reserved .
3- // For conditions of distribution and use, see license .
1+ // Copyright (C) 2009-2022 Xtensive LLC.
2+ // This code is distributed under MIT license terms .
3+ // See the License.txt file in the project root for more information .
44
55using System ;
66using System . Data ;
1717
1818namespace Xtensive . Orm . Tests . Sql . SqlServer
1919{
20- [ TestFixture ]
20+ [ TestFixture , Explicit ]
2121 public class MiscTests : AdventureWorks
2222 {
2323 private SqlConnection sqlConnection ;
You can’t perform that action at this time.
0 commit comments