Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing tests #32164

Merged
2 commits merged into from
Oct 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1814,7 +1814,7 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
discriminatorProperty: "Discriminator",
discriminatorValue: "IdentityUser",
derivedTypesCount: 1,
propertyCount: 16,
propertyCount: 15,
keyCount: 1);

var id = runtimeEntityType.AddProperty(
Expand Down Expand Up @@ -2299,7 +2299,7 @@ void RunInitialization()
}

model.Customize();
_instance = model;
_instance = (SpatialTypesContextModel)model.FinalizeModel();
}

private static SpatialTypesContextModel _instance;
Expand Down Expand Up @@ -2329,6 +2329,11 @@ namespace TestNamespace
{
public partial class SpatialTypesContextModel
{
private SpatialTypesContextModel()
: base(skipDetectChanges: false, modelId: new Guid("00000000-0000-0000-0000-000000000000"), entityTypeCount: 1)
{
}

partial void Initialize()
{
var spatialTypes = SpatialTypesEntityType.Create(this);
Expand Down Expand Up @@ -2417,7 +2422,9 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
var runtimeEntityType = model.AddEntityType(
"Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpRuntimeModelCodeGeneratorTest+SpatialTypes",
typeof(CSharpRuntimeModelCodeGeneratorTest.SpatialTypes),
baseEntityType);
baseEntityType,
propertyCount: 2,
keyCount: 1);

var id = runtimeEntityType.AddProperty(
"Id",
Expand Down Expand Up @@ -16011,7 +16018,7 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
baseEntityType,
discriminatorValue: "PrincipalBase",
derivedTypesCount: 1,
propertyCount: 15,
propertyCount: 14,
navigationCount: 1,
skipNavigationCount: 1,
unnamedIndexCount: 1,
Expand Down Expand Up @@ -31821,7 +31828,7 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
discriminatorProperty: "Discriminator",
discriminatorValue: "PrincipalBase",
derivedTypesCount: 1,
propertyCount: 16,
propertyCount: 15,
navigationCount: 1,
skipNavigationCount: 1,
unnamedIndexCount: 1,
Expand Down
Loading