Component | Build | Status |
---|---|---|
ASP.NET Core OData | Rolling | |
ASP.NET Core OData | Nightly |
This is the official ASP.NET Core OData repository. ASP.NET Core OData is a server side library built upon ODataLib and ASP.NET Core.
Blogs:
Example:
- ODataRoutingSample: ASP.NET Core OData sample project in this repo.
In the ASP.NET Core Web Application project, update your Startup.cs
as below:
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<BookStoreContext>(opt => opt.UseInMemoryDatabase("BookLists"));
services.AddControllers();
services.AddOData(opt => opt.AddModel("odata", GetEdmModel()));
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
}
private static IEdmModel GetEdmModel()
{
// …
}
}
That's it.
Visual Studio 2019 Preview is necessary to build the project.
Coming soon.
The symbol package is uploaded to nuget symbol server.
The nightly build process will upload a NuGet packages for ASP.NET Core OData to:
To connect to webapinightly feed, use this feed URL:
-
ODataRoutingSample: ASP.NET Core OData sample project in this repo.
-
ASP.NET OData 8.0 Preview for .NET 5 : A blog introducing the project.
Any contribution, feature request, bug, issue are welcome.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.