@@ -1084,7 +1084,7 @@ private static void AssertSprocs(IRelationalModel model, Mapping mapping, bool m
1084
1084
Assert . Equal (
1085
1085
new [ ] { nameof ( Order . AlternateId ) , nameof ( Order . CustomerId ) , nameof ( Order . OrderDate ) } ,
1086
1086
ordersInsertSproc . Parameters . Select ( m => m . Name ) ) ;
1087
-
1087
+
1088
1088
Assert . Equal (
1089
1089
new [ ] { 0 , 1 , 2 } ,
1090
1090
ordersInsertSproc . Parameters . Select ( m => m . Position ) ) ;
@@ -1139,7 +1139,7 @@ private static void AssertSprocs(IRelationalModel model, Mapping mapping, bool m
1139
1139
RelationalStrings . TableNotMappedEntityType ( nameof ( SpecialCustomer ) , ordersInsertSproc . Name ) ,
1140
1140
Assert . Throws < InvalidOperationException > (
1141
1141
( ) => ordersInsertSproc . IsOptional ( specialCustomerType ) ) . Message ) ;
1142
-
1142
+
1143
1143
var tableMapping = orderInsertMapping . TableMapping ;
1144
1144
if ( mappedToTables )
1145
1145
{
@@ -1289,7 +1289,7 @@ private static void AssertSprocs(IRelationalModel model, Mapping mapping, bool m
1289
1289
specialCustomerType . GetInsertStoredProcedureMappings ( ) . Single ( m => m . IncludesDerivedTypes ) . StoreStoredProcedure . Name ) ;
1290
1290
Assert . Null ( baseInsertSproc . Schema ) ;
1291
1291
Assert . Equal (
1292
- new [ ] { nameof ( AbstractBase ) , nameof ( Customer ) , nameof ( ExtraSpecialCustomer ) , nameof ( SpecialCustomer ) } ,
1292
+ new [ ] { nameof ( AbstractBase ) , nameof ( AbstractCustomer ) , nameof ( Customer ) , nameof ( ExtraSpecialCustomer ) , nameof ( SpecialCustomer ) } ,
1293
1293
baseInsertSproc . EntityTypeMappings . Select ( m => m . EntityType . DisplayName ( ) ) ) ;
1294
1294
1295
1295
Assert . Equal (
@@ -1321,7 +1321,7 @@ private static void AssertSprocs(IRelationalModel model, Mapping mapping, bool m
1321
1321
1322
1322
Assert . Null ( baseUpdateSproc . Schema ) ;
1323
1323
Assert . Equal (
1324
- new [ ] { nameof ( AbstractBase ) , nameof ( Customer ) , nameof ( ExtraSpecialCustomer ) , nameof ( SpecialCustomer ) } ,
1324
+ new [ ] { nameof ( AbstractBase ) , nameof ( AbstractCustomer ) , nameof ( Customer ) , nameof ( ExtraSpecialCustomer ) , nameof ( SpecialCustomer ) } ,
1325
1325
baseUpdateSproc . EntityTypeMappings . Select ( m => m . EntityType . DisplayName ( ) ) ) ;
1326
1326
1327
1327
Assert . Equal (
@@ -1353,7 +1353,7 @@ private static void AssertSprocs(IRelationalModel model, Mapping mapping, bool m
1353
1353
1354
1354
Assert . Null ( baseDeleteSproc . Schema ) ;
1355
1355
Assert . Equal (
1356
- new [ ] { nameof ( AbstractBase ) , nameof ( Customer ) , nameof ( ExtraSpecialCustomer ) , nameof ( SpecialCustomer ) } ,
1356
+ new [ ] { nameof ( AbstractBase ) , nameof ( AbstractCustomer ) , nameof ( Customer ) , nameof ( ExtraSpecialCustomer ) , nameof ( SpecialCustomer ) } ,
1357
1357
baseDeleteSproc . EntityTypeMappings . Select ( m => m . EntityType . DisplayName ( ) ) ) ;
1358
1358
1359
1359
Assert . Equal (
@@ -1421,8 +1421,8 @@ private static void AssertSprocs(IRelationalModel model, Mapping mapping, bool m
1421
1421
Assert . Same ( idPropertyInsertParameter . StoredProcedure , idPropertyInsertParameter . Table ) ;
1422
1422
Assert . Same ( idPropertyInsertParameterMapping , idPropertyInsertParameter . FindParameterMapping ( abstractBaseType ) ) ;
1423
1423
1424
- Assert . Equal ( 3 , idProperty . GetInsertStoredProcedureResultColumnMappings ( ) . Count ( ) ) ;
1425
- Assert . Equal ( 7 , idProperty . GetInsertStoredProcedureParameterMappings ( ) . Count ( ) ) ;
1424
+ Assert . Equal ( 2 , idProperty . GetInsertStoredProcedureResultColumnMappings ( ) . Count ( ) ) ;
1425
+ Assert . Equal ( 10 , idProperty . GetInsertStoredProcedureParameterMappings ( ) . Count ( ) ) ;
1426
1426
Assert . Equal (
1427
1427
new [ ]
1428
1428
{
@@ -1451,7 +1451,7 @@ private static void AssertSprocs(IRelationalModel model, Mapping mapping, bool m
1451
1451
Assert . Same ( idPropertyUpdateParameterMapping , idPropertyUpdateParameter . FindParameterMapping ( abstractBaseType ) ) ;
1452
1452
1453
1453
Assert . Empty ( idProperty . GetUpdateStoredProcedureResultColumnMappings ( ) ) ;
1454
- Assert . Equal ( 10 , idProperty . GetUpdateStoredProcedureParameterMappings ( ) . Count ( ) ) ;
1454
+ Assert . Equal ( 12 , idProperty . GetUpdateStoredProcedureParameterMappings ( ) . Count ( ) ) ;
1455
1455
Assert . Equal (
1456
1456
new [ ]
1457
1457
{
@@ -1479,7 +1479,7 @@ private static void AssertSprocs(IRelationalModel model, Mapping mapping, bool m
1479
1479
Assert . Same ( idPropertyDeleteParameter . StoredProcedure , idPropertyDeleteParameter . Table ) ;
1480
1480
Assert . Same ( idPropertyDeleteParameterMapping , idPropertyDeleteParameter . FindParameterMapping ( abstractBaseType ) ) ;
1481
1481
1482
- Assert . Equal ( 10 , idProperty . GetDeleteStoredProcedureParameterMappings ( ) . Count ( ) ) ;
1482
+ Assert . Equal ( 12 , idProperty . GetDeleteStoredProcedureParameterMappings ( ) . Count ( ) ) ;
1483
1483
Assert . Equal (
1484
1484
new [ ]
1485
1485
{
@@ -2012,11 +2012,6 @@ private IRelationalModel CreateTestModel(
2012
2012
{
2013
2013
cb . InsertUsingStoredProcedure ( s => s . HasParameter ( "SpecialtyAk" ) ) ;
2014
2014
}
2015
- else
2016
- {
2017
- cb . InsertUsingStoredProcedure (
2018
- s => s . HasParameter ( c => c . Id , p => p . IsOutput ( ) ) ) ;
2019
- }
2020
2015
}
2021
2016
}
2022
2017
} ) ;
@@ -2196,7 +2191,7 @@ private IRelationalModel CreateTestModel(
2196
2191
else if ( mapping == Mapping . TPT )
2197
2192
{
2198
2193
cb
2199
- . InsertUsingStoredProcedure ( s => s . HasResultColumn ( b => b . Id ) )
2194
+ . InsertUsingStoredProcedure ( s => s . HasParameter ( b => b . Id ) )
2200
2195
. UpdateUsingStoredProcedure ( s => s . HasParameter ( b => b . Id ) )
2201
2196
. DeleteUsingStoredProcedure ( s => s . HasParameter ( b => b . Id ) ) ;
2202
2197
}
0 commit comments