Skip to content

9.x: Inconsistent to define 'Edm.Untyped' property or 'Collection(Edm.Untyped)' property #3442

@xuzhg

Description

@xuzhg

Describe the bug

    this.serverEntityType.AddStructuralProperty("Infos",
        new EdmCollectionTypeReference(new EdmCollectionType(EdmCoreModel.Instance.GetUntyped())));

vs

   this.serverEntityType.AddStructuralProperty("Infos",
        new EdmCollectionTypeReference(new EdmCollectionType(EdmUntypedStructuredTypeReference.NullableTypeReference)));

Both can get the following property:

 <Property Name="Info" Type="Collection(Edm.Untyped)" />
  1. Which one should take?
  2. We should only keep one?

Assemblies affected

Which assemblies and versions are known to be affected e.g. Microsoft.OData.Core 9.x

Steps to Reproduce

The simplest set of steps to reproduce the issue. If possible, reference a commit that demonstrates the issue.

Expected behaviour

What would happen if there wasn't a bug.

Actual behaviour

What is actually happening.

Additional details

Optional, details of the root cause if known. Delete this section if you have no additional details to add.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions