-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update discriminator columns when PK-to-PK dependent type is changed
- Loading branch information
1 parent
1099d69
commit ec4cdb5
Showing
7 changed files
with
163 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
test/EFCore.Specification.Tests/TestModels/UpdatesModel/Gift.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
#nullable enable | ||
|
||
namespace Microsoft.EntityFrameworkCore.TestModels.UpdatesModel; | ||
|
||
public class Gift | ||
{ | ||
public int Id { get; set; } | ||
public string? Recipient { get; set; } | ||
|
||
public GiftObscurer? Obscurer { get; set; } | ||
} | ||
|
||
public abstract class GiftObscurer | ||
{ | ||
public int Id { get; set; } | ||
public string? Pattern { get; set; } | ||
} | ||
|
||
public class GiftBag : GiftObscurer | ||
{ | ||
public int Size { get; set; } | ||
} | ||
|
||
public class GiftPaper : GiftObscurer | ||
{ | ||
public int Thickness { get; set; } | ||
} |
32 changes: 32 additions & 0 deletions
32
test/EFCore.Specification.Tests/TestModels/UpdatesModel/Lift.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
#nullable enable | ||
|
||
namespace Microsoft.EntityFrameworkCore.TestModels.UpdatesModel; | ||
|
||
public class Lift | ||
{ | ||
public int Id { get; set; } | ||
public string? Recipient { get; set; } | ||
|
||
public LiftObscurer Obscurer { get; set; } = null!; | ||
} | ||
|
||
public abstract class LiftObscurer | ||
{ | ||
public int Id { get; set; } | ||
|
||
public int LiftId { get; set; } | ||
public string? Pattern { get; set; } | ||
} | ||
|
||
public class LiftBag : LiftObscurer | ||
{ | ||
public int Size { get; set; } | ||
} | ||
|
||
public class LiftPaper : LiftObscurer | ||
{ | ||
public int Thickness { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters