Sam Xu

Results 347 comments of Sam Xu

@RobTF @Greg-Hitchon I think that's related to https://github.com/OData/AspNetCoreOData/blob/master/src/Microsoft.AspNetCore.OData/Extensions/HttpRequestExtensions.cs#L263-L264 @RobTF I reviewed your PR, but to call "UseOData()" is not acceptable. Do you mind to change your PR based on the...

@RobTF Would you please help test the nightly: Microsoft.AspNetCore.OData.8.0.0-Nightly202103172053.nupkg

>1) The method in question is GetSubServiceProvider which looks to potentially be called multiple times per request to get the scope. Simply adding a create call into this method may...

@All, I published a RC version at nuget.org. you can download at https://www.nuget.org/packages/Microsoft.AspNetCore.OData/8.0.0-rc For the currency request, I found an issue (it could be the root cause) and fixed it...

@qwertie for the #1, you can do like (pseudocode codes). ```C# .... EdmModel model = builder.GetEdmModel() as EdmModel; var entityType = model.SchemaElements.OfType().First(e => e.Name == "ODataEntity"); IODataTypeMapper mapper = model.GetTypeMapper();...

@qwertie For the first issue, you can create/customize the resource serializer to provide the property value. For the second, you can replace the built-in MetadataRoutingConvention to provide the change model.

@qwertie https://devblogs.microsoft.com/odata/build-formatter-extensions-in-asp-net-core-odata-8-and-hooks-in-odataconnectedservice/ is a post illustrating how to create the serializer. Let me know if it can't work and need further help.

@kakone 1) I don't like the method name 2) Where will you use 'StringAsEnumResolver'?

> namespace Microsoft.AspNetCore.OData.E2E.Tests.NonEdm add copyright --- Refers to: test/Microsoft.AspNetCore.OData.E2E.Tests/NonEdm/NonEdmDataModel.cs:1 in e305e35. [](commit_id = e305e352207b61b572e68e43fc568ea3b2e1a197, deletion_comment = False)

@kakone It looks ok to me but would you please take a look for my comments. Besides, do you think we should make this available directly calling AddOData(); For example:...