-
Notifications
You must be signed in to change notification settings - Fork 31
Support explicitly implemented interface members and default interface properties #135
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c4d8bfa
Support explicitly implemented interface members
Rhodonvt a142c85
Support default interface members
Rhodonvt 0a11512
Merge branch 'master' into interface-members
eeb8788
Add missing verified files
5e3ce6e
Merge branch 'master' into interface-members
f91804d
Fix code to make generated source compilable
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
2 changes: 2 additions & 0 deletions
2
...heritedModelTests.ProjectOverDefaultExplicitlyImplementedProperty.DotNet10_0.verified.txt
This file contains hidden or 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,2 @@ | ||
| SELECT [c].[Id] * 2 | ||
| FROM [Concrete] AS [c] |
2 changes: 2 additions & 0 deletions
2
...nheritedModelTests.ProjectOverDefaultExplicitlyImplementedProperty.DotNet9_0.verified.txt
This file contains hidden or 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,2 @@ | ||
| SELECT [c].[Id] * 2 | ||
| FROM [Concrete] AS [c] |
2 changes: 2 additions & 0 deletions
2
...nalTests/InheritedModelTests.ProjectOverDefaultExplicitlyImplementedProperty.verified.txt
This file contains hidden or 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,2 @@ | ||
| SELECT [c].[Id] * 2 | ||
| FROM [Concrete] AS [c] |
2 changes: 2 additions & 0 deletions
2
...alTests/InheritedModelTests.ProjectOverDefaultImplementedProperty.DotNet10_0.verified.txt
This file contains hidden or 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,2 @@ | ||
| SELECT 49 | ||
| FROM [Concrete] AS [c] |
2 changes: 2 additions & 0 deletions
2
...nalTests/InheritedModelTests.ProjectOverDefaultImplementedProperty.DotNet9_0.verified.txt
This file contains hidden or 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,2 @@ | ||
| SELECT 49 | ||
| FROM [Concrete] AS [c] |
2 changes: 2 additions & 0 deletions
2
...es.FunctionalTests/InheritedModelTests.ProjectOverDefaultImplementedProperty.verified.txt
This file contains hidden or 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,2 @@ | ||
| SELECT 49 | ||
| FROM [Concrete] AS [c] |
2 changes: 2 additions & 0 deletions
2
...ests/InheritedModelTests.ProjectOverExplicitlyImplementedProperty.DotNet10_0.verified.txt
This file contains hidden or 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,2 @@ | ||
| SELECT [o].[Id] / 2 | ||
| FROM [OtherConcrete] AS [o] |
2 changes: 2 additions & 0 deletions
2
...Tests/InheritedModelTests.ProjectOverExplicitlyImplementedProperty.DotNet9_0.verified.txt
This file contains hidden or 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,2 @@ | ||
| SELECT [o].[Id] / 2 | ||
| FROM [OtherConcrete] AS [o] |
2 changes: 2 additions & 0 deletions
2
...FunctionalTests/InheritedModelTests.ProjectOverExplicitlyImplementedProperty.verified.txt
This file contains hidden or 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,2 @@ | ||
| SELECT [o].[Id] / 2 | ||
| FROM [OtherConcrete] AS [o] |
This file contains hidden or 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
16 changes: 16 additions & 0 deletions
16
...ator.Tests/ProjectionExpressionGeneratorTests.DefaultExplicitInterfaceMember.verified.txt
This file contains hidden or 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,16 @@ | ||
| // <auto-generated/> | ||
| #nullable disable | ||
| using System; | ||
| using EntityFrameworkCore.Projectables; | ||
|
|
||
| namespace EntityFrameworkCore.Projectables.Generated | ||
| { | ||
| [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] | ||
| static class _IDefaultBaseImplementation_IDefaultBase__Default | ||
| { | ||
| static global::System.Linq.Expressions.Expression<global::System.Func<global::IDefaultBaseImplementation, int>> Expression() | ||
| { | ||
| return (global::IDefaultBaseImplementation @this) => @this.ComputedProperty * 2; | ||
| } | ||
| } | ||
| } |
16 changes: 16 additions & 0 deletions
16
...es.Generator.Tests/ProjectionExpressionGeneratorTests.DefaultInterfaceMember.verified.txt
This file contains hidden or 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,16 @@ | ||
| // <auto-generated/> | ||
| #nullable disable | ||
| using System; | ||
| using EntityFrameworkCore.Projectables; | ||
|
|
||
| namespace EntityFrameworkCore.Projectables.Generated | ||
| { | ||
| [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] | ||
| static class _IDefaultBase_Default | ||
| { | ||
| static global::System.Linq.Expressions.Expression<global::System.Func<global::IDefaultBase, int>> Expression() | ||
| { | ||
| return (global::IDefaultBase @this) => @this.ComputedProperty * 2; | ||
| } | ||
| } | ||
| } |
16 changes: 16 additions & 0 deletions
16
...s.Generator.Tests/ProjectionExpressionGeneratorTests.ExplicitInterfaceMember.verified.txt
This file contains hidden or 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,16 @@ | ||
| // <auto-generated/> | ||
| #nullable disable | ||
| using System; | ||
| using EntityFrameworkCore.Projectables; | ||
|
|
||
| namespace EntityFrameworkCore.Projectables.Generated | ||
| { | ||
| [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] | ||
| static class _Concrete_IBase__ComputedProperty | ||
| { | ||
| static global::System.Linq.Expressions.Expression<global::System.Func<global::Concrete, int>> Expression() | ||
| { | ||
| return (global::Concrete @this) => @this.Id + 1; | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.