smartstore / SmartStoreNET

Open Source ASP.NET MVC Enterprise eCommerce Shopping Cart Solution
http://www.smartstore.com/en/net
GNU General Public License v3.0
2.64k stars 1.46k forks source link

WebApi: Namespace conflict #2200

Open TripleNico opened 3 years ago

TripleNico commented 3 years ago

In the OData Metadata XML there are two namespaces that causes a conflict when you use Autogenerated code (OData Connected Service in VisualStudio). These are:

<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="System.Net.Http">
    <ComplexType Name="StreamContent">
        <Property Name="Headers" Type="Collection(System.Collections.Generic.KeyValuePair_2OfString_IEnumerable_1OfString)"/>
    </ComplexType>
</Schema>

And

<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="System.Collections.Generic">
    <ComplexType Name="KeyValuePair_2OfString_IEnumerable_1OfString">
        <Property Name="Value" Type="Collection(Edm.String)"/>
    </ComplexType>
</Schema>
mgesing commented 3 years ago

I've included all API schema types in your sample project but don't still get this.