code

ASP.NET Core and IIS

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

What does it means to host you application in IIS? To help with that there is new module called ASP.NET Core Module.

 

code

ASP.NET Core hosting

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

Hosting is how you get you ASP.NET application up and running. And ASP.NET Core is just bunch of libraries host in you own process. It’s not provide a hosting – user have to take care of providing hosting process.

code

Secrets of project.json file

By Dawid on (tags: ASP.NET, core, project.json, categories: code)

As you may already notice ASP.NET Core is using project.json files to controls almost all aspects of the project. It contains lot of section (which I will describe bellow) with full support of intellisense. That file is also synchronized with Solution Explorer – removing referenced from file will automatically update References node in Solution Explorer. Here is the list of pro…

code

Entity Framework Core context in separate assembly

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

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…

code

Full responsive vs m-site approach

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

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…

code

Dependency injection everywhere

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

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.…

infrastructure

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

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

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…