Webapi: IServiceCollection Extension AddOData namespace

Created on 20 Jan 2018  路  1Comment  路  Source: OData/WebApi

The IServiceCollection extension method AddOData namespace is currently Microsoft.AspNet.OData.Extensions IMHO this should be Microsoft.Extensions.DependencyInjection and follow the standard that other Microsoft extension methods using eg. EntityFrameWork, Logging, Configuration, Caching, ...

P4

Most helpful comment

Yep. Just to point out to the OData devs, the convention for extension methods is to put the class in the namespace you're extending. If you have to import a different namespace for an extension methods, it's not very discoverable.

>All comments

Yep. Just to point out to the OData devs, the convention for extension methods is to put the class in the namespace you're extending. If you have to import a different namespace for an extension methods, it's not very discoverable.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

christiannagel picture christiannagel  路  4Comments

TehWardy picture TehWardy  路  5Comments

IgorWolbers picture IgorWolbers  路  3Comments

VikingsFan picture VikingsFan  路  5Comments

ilya-chumakov picture ilya-chumakov  路  5Comments