Skip to content

Support extension method as Navigation property#1528

Open
genusP wants to merge 14 commits intoOData:masterfrom
genusP:nav_prop_as_extension_method
Open

Support extension method as Navigation property#1528
genusP wants to merge 14 commits intoOData:masterfrom
genusP:nav_prop_as_extension_method

Conversation

@genusP
Copy link
Copy Markdown
Contributor

@genusP genusP commented Jul 10, 2018

Issues

Some ORMs (e.g. linq2db) support define navigation properties as extension method.
This PR add functional to model builder and also update binders for support this.

Checklist (Uncheck if it is not completed)

  • Test cases added
  • Build and test with one-click build and test script passed

Additional work necessary

If documentation update is needed, please add "Docs Needed" label to the issue and provide details about the required document change in the issue.

@xuzhg
Copy link
Copy Markdown
Member

xuzhg commented Jul 16, 2018

using Microsoft.AspNet.OData.Common;

  1. Would you please add the copy right head.
  2. Would you please sort the using.

Refers to: src/Microsoft.AspNet.OData.Shared/Builder/PropertyDescriptor.cs:1 in f87be69. [](commit_id = f87be69, deletion_comment = False)

Comment thread src/Microsoft.AspNet.OData.Shared/Builder/PropertyDescriptor.cs Outdated
Comment thread src/Microsoft.AspNet.OData.Shared/Builder/PropertyDescriptor.cs Outdated
Comment thread src/Microsoft.AspNet.OData.Shared/Builder/PropertyDescriptor.cs Outdated
Comment thread src/Microsoft.AspNet.OData.Shared/Builder/PropertyDescriptor.cs Outdated
@genusP
Copy link
Copy Markdown
Contributor Author

genusP commented Jul 16, 2018

I fix it in commit genusP@da30e83

Why this commit not showing in PR

Comment thread samples/WebApplication1/Model.cs Outdated
@xuzhg
Copy link
Copy Markdown
Member

xuzhg commented Jul 17, 2018

namespace AspNetCoreODataSample.Web.Controllers

clean the codes


Refers to: samples/AspNetCoreODataSample.Web/Controllers/DataConnection.cs:1 in da30e83. [](commit_id = da30e83, deletion_comment = False)

Comment thread sln/WebApiOData.AspNetCore.sln Outdated
Comment thread src/Microsoft.AspNet.OData.Shared/Builder/MemberDescriptor.cs Outdated
Comment thread src/Microsoft.AspNet.OData.Shared/Builder/MemberDescriptor.cs Outdated
Comment thread src/Microsoft.AspNet.OData.Shared/Builder/MemberDescriptor.cs Outdated
@genusP genusP force-pushed the nav_prop_as_extension_method branch 3 times, most recently from 8fb28db to b347a48 Compare July 17, 2018 05:19
@genusP genusP force-pushed the nav_prop_as_extension_method branch from b347a48 to 674d25f Compare July 17, 2018 05:30
@genusP
Copy link
Copy Markdown
Contributor Author

genusP commented Jul 17, 2018

Unnecessary files deleted (commit genusP/WebApi@da30e83 replaced)
Fix doc comments
Fix code analysis errors

@genusP
Copy link
Copy Markdown
Contributor Author

genusP commented Aug 9, 2018

I hope, you add this feature

@genusP
Copy link
Copy Markdown
Contributor Author

genusP commented Aug 15, 2018

@xuzhg, Any questions by this PR?

genusP and others added 3 commits September 4, 2018 08:13
…as_extension_method

# Conflicts:
#	src/Microsoft.AspNet.OData.Shared/Formatter/EdmLibHelpers.cs
#	src/Microsoft.AspNet.OData.Shared/Microsoft.AspNet.OData.Shared.projitems
@genusP
Copy link
Copy Markdown
Contributor Author

genusP commented Jul 8, 2019

@mikepizzo, please review this PR.

@genusP
Copy link
Copy Markdown
Contributor Author

genusP commented Jul 16, 2019

@KanishManuja-MS Please, give me information about CI errors.

@KanishManuja-MS
Copy link
Copy Markdown
Contributor

image
image

@genusP
Copy link
Copy Markdown
Contributor Author

genusP commented Jul 17, 2019

@KanishManuja-MS Please, give me information about CI errors.

@KanishManuja-MS
Copy link
Copy Markdown
Contributor

@genusP Style issues -
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants