no dogma blog
no dogma blog
Blog Posts
Podcast
Web API Lambda Course
Polly Course
Photos
Contact
Support this Site
About
RSS
Light
Dark
Automatic
Posts
ASP.NET 5 Web Api Controller with Multiple get Methods
A simple example of how to create a Web Api controller with multiple get methods in ASP.NET 5.
Jan 15, 2016
#
ASP.NET 5
,
AspNet
,
Routing
,
WebApi
How to fix 'No database providers are configured' when scaffolding a controller in ASP.NET 5
If got this error when trying to scaffold a new controller (MVC and Web Api) for an ASP.NET 5 web app using Visual Studio 2015. There was an error running the selected code generator: 'No database providers are configured.
Jan 15, 2016
#
ASP.NET 5
,
Controllers
,
Scaffolding
,
Visual Studio 2015
The type 'xxxx' is defined in an assembly that is not referenced. System.Runtime.
If you recognize the error from the title of this post, you can jump to the solution. The problem I have a ASP.NET 5 solution with two projects, a web application project and a class library project.
Jan 15, 2016
#
ASP.NET 5
,
Configuration
Adding class libraries to an ASP.NET 5 web application
When adding a class library to an ASP.NET 5 application you might get an error like “The following projects are not supported as references: - The project ClassLibrary1 has a target framework that is incompatible or has a version higher than the current project and cannot be referenced”
Jan 14, 2016
#
ASP.NET 5
,
AspNet
,
Visual Studio 2015
Entity Framework with Proper Foreign Key Names
Full source code here. One of the very nice features of Entity Framework is the navigational properties. But it is easy to set them up in a less that optimal way.
Jun 12, 2015
#
Entity Framework
Entity Framework Migrations with an existing database
Introduction If you read my post on Entity Framework migrations, you might be saying, “that’s amazing, but that’s all very well for new projects, but we’ve got eighty tables in place already and that code first migration ship has sailed”.
May 11, 2015
#
Entity Framework
,
Migrations
Finding the Location of a Running Assembly in .Net
For many reasons you might want to know where a running assembly is located on your filesystem. I had to do this once when I was compiling classes at runtime and had a dependency on EntityFramework.
May 1, 2015
#
Assembly location
,
Dynamic compilation
Entity Framework non null foreign key migration
Full source code is provided. Overview This post gives a quick overview of how to use Entity Framework migrations and a detailed example of how to handle the addition of a new non null foreign keyed column to an existing table with data in it.
Apr 30, 2015
#
Database
,
Entity Framework
,
Migrations
Mass Transit with RabbitMQ Hello World
Full source code is available here. Below is an example of how to use RabbitMQ with Mass Transit service bus. See here for instructions on how to install Rabbit MQ.
Apr 13, 2015
#
MassTransit
,
RabbitMQ
,
Service Bus
Complex model validation using Fluent Validation
Full source code is available here. A common problem is validating an object using a complicated set of rules. I started using the Fluent Validation package some time back, it is commonly used with MVC and Web API applications but can be used with in any scenario that requires validation.
Apr 10, 2015
#
Fluent Validation
,
Validators
«
»
Cite
×