Entity Framework Core context in separate assembly

Most of example currently available on the internet shows how’s to start using ASP.NET Core and EF Core implemented in the same assembly. In the RC1 there was couple of tricks which we had to implement if we would like to have separate assembly with data model definition. In RC2 release it’s a little bit easier. Bellow I’ll show you how you can achieve that. This is our applica…

By Dawid on (tags: ASP.NET, context, core, ef core, categories: code)

Full responsive vs m-site approach

Nowadays there are more mobile devices than desktops and every mobile device can have different resolution and aspect ratio. That means that we need to come up with optimal solution to that situation. There are basically two main approaches: a website that can dynamically adapted to every screen size - full responsive or additional dedicated mobile version of every page – mobil…

By Piotr on (tags: ASP.NET, responsive design, categories: code, web)

Dependency injection everywhere

Just a few years ago there was just few people who known what dependency injection is. Today it is almost everywhere. Recently I’ve discovered that it can be also used in Razor views – thanks to ASP.NET 5. I will try to show you how we can use that feature on few examples bellow. Probably each of you have been populating drop downs in Razor views with data send from controller.…

By Dawid on (tags: ASP.NET, dependency, injection, IoC, next, razor, categories: code)

Practical differences between ASP.NET Web API and WCF Data Services

In this post I would like to point out the main practical differences between ASP.NET Web API and WCF Data Services (OData). For those who does not yet know too much about Web API there is a lot of articles and tutorial about this topic on the net. The starting point is of course Microsoft ASP.NET team site which provides all related information and a bunch of tutorials. Concer…

By Mirek on (tags: ASP.NET, OData, WCF Data Services, Web API, categories: infrastructure, code)