This article shows how to use a javascript Plotly Bar Chart in Angular to display data from an ASP.NET Core 1.0 MVC application. The server uses Elasticsearch as persistence and uses it to retrieve the aggregated data and return it to the UI. Code: https://github.com/damienbod/AngularPlotlyAspNetCore Setting up the test data in Elasticsearch The SnakeBites class […]

This article shows how to use SQL localization in ASP.NET Core using an SQL database. The SQL localization in the demo uses Entity Framework Core to access a SQLite database. This can be configured to use any EF core provider. Code: https://github.com/damienbod/AspNet5Localization Library: https://github.com/damienbod/AspNet5Localization/tree/master/AspNet5Localization/src/Localization.SqlLocalizer Note 2016.01.29: This application is using ASP.NET Core 1.0 rc2. At […]

This article shows how to use PostgreSQL with ASP.NET Core 1.0 using Entity Framework 7. Code: https://github.com/damienbod/AspNet5MultipleProject The PostgreSQL Entity Framework 7 provider can be downloaded as a NuGet package. Add the NuGet package EntityFramework7.Npgsql to your dependencies in the project.json file. Create the context for Entity Framework 7 which is used for the PostgreSQL […]

The article shows some of the ways in which Entity Framework Core can be used together with ASP.NET Core 1.0 MVC. Both packages run on dnxcore which makes it possible to run on Linux, Mac or Windows operating systems. The Entity Framework providers are implemented in separate data access projects using onion architecture. Code: https://github.com/damienbod/AspNet5MultipleProject […]

This article shows how to use Microsoft patterns & practices OUT-OF-PROCESS Semantic Logging Version 2 with an Elasticsearch sink. Version 2 has breaking changes compared to version 1.1 for the Elasticsearch sink; this has been removed from the standard SLAB NuGet package… Due to this, a custom sink configuration is required and also some copy […]

This article shows how to document your ASP.NET Core 1.0 MVC API using Swagger with Swashbuckle. Per default, it does not use your xml comments in the code and this needs to be configured if required. Code: https://github.com/damienbod/AspNet5GeoElasticsearch Step 1: Add the required NuGet packages to the dependencies in the project.json file. Step 2: Produce […]

This article shows how to upload and download files in ASP.NET Core 1.0 MVC and save the files to a MS SQL Server using FileTable. The data access for the application is implemented in a separate project and EF7 migrations is used to setup the select logic for the database. Code: https://github.com/damienbod/AspNet5FileUploadFileTable Update: 08.12.2015: config […]

Follow

Get every new post delivered to your Inbox.

Join 98 other followers