-
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.
Metadata: Fix few Shared Type entity type bugs
- Add DefaultPropertyBagType in shared type by convention - Throw exception message for nonconfigured navigation pointing to shared type - Skip Shared type navigation when searching for FKAttribute on property
- Loading branch information
Showing
21 changed files
with
459 additions
and
427 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
18 changes: 18 additions & 0 deletions
18
test/EFCore.Specification.Tests/TestModels/ManyToManyModel/ImplicitManyToManyA.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,18 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
|
||
namespace Microsoft.EntityFrameworkCore.TestModels.ManyToManyModel | ||
{ | ||
public class ImplicitManyToManyA | ||
{ | ||
[DatabaseGenerated(DatabaseGeneratedOption.None)] | ||
public virtual int Id { get; set; } | ||
public virtual string Name { get; set; } | ||
|
||
public virtual ICollection<ImplicitManyToManyB> Bs { get; } = new ObservableCollection<ImplicitManyToManyB>(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
test/EFCore.Specification.Tests/TestModels/ManyToManyModel/ImplicitManyToManyB.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,18 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
|
||
namespace Microsoft.EntityFrameworkCore.TestModels.ManyToManyModel | ||
{ | ||
public class ImplicitManyToManyB | ||
{ | ||
[DatabaseGenerated(DatabaseGeneratedOption.None)] | ||
public virtual int Id { get; set; } | ||
public virtual string Name { get; set; } | ||
|
||
public virtual ICollection<ImplicitManyToManyA> As { get; } = new ObservableCollection<ImplicitManyToManyA>(); | ||
} | ||
} |
Oops, something went wrong.