ASP.Net makes creating Web APIs as painless as possible. In this article I’ll walk you thru basics of ASP.Net Web API. You’ll learn how to setup EF Core with Web API and Swagger. Additionally I’ll go thru Student Controller which contains CRUD methods. Finally I’ll show you new features that were provided in .Net Core…
Read MoreEF Migration
One of the greatest feature of Entity Framework are Migrations. Today I’ll tell you what Migrations are, how to create and use Migration. Finally I’ll tell you what limitations of Migrations are. I am personally a fan of automation and Migrations are all about automatizing database upgrades and downgrades. What are Migrations? As I said…
Read MoreSpike EF Core
This is first post of Basic series where we gather everything we learned and write some code. We know theory, now it’s time for some practice. In future we will extend this sample project as new topics will arrive. For now let’s begin. Requirements Our client wants us to create for him simple school API.…
Read MoreEntity Framework Code First vs DB First
Before we can jump into the fray we need to decide how we want to approach modeling of our entities. There are two options and both have their advantages and problems. Today we’re going to cover both approaches, after that you’ll know which, Code First or DB First choose in your project. Code First As…
Read MoreAccess Database – ORM vs SQL
Almost every application stores data somewhere. It is very often stored in database. If you want to store data, you need to find a way to access database. Today I’ll describe possible methods to access database with advantages and problems. Possible options You should know that there is a lot of ways to access database…
Read MoreStatus Codes
Help your client even more Sometime when one of your favorite website has issue you can see something like that: It’s very small thing, but it can help your client, if you respond with information that action succeeded or failed, and HTTP has easy, lean solution for that, Status Codes. Why even bother with status…
Read MoreREST API – Uniform Interface
Previously We were talking about REST API and the most important trait of REST, Statelessness. You can read it here, if you didn’t have opportunity for it. Today’s topic is uniform interface, it’s mostly about look and feel of our endpoints. Some people may say that it’s not important, these people didn’t work with poorly…
Read MoreHTTP Verbs
HTTP defines a set of request methods, I like to call them verbs, and both terms are valid. Each of HTTP Verb has its task and is different from others. Information transport HTTP Verbs are used to transport information, each of them may have three options to transport data. REST adds restriction, I’ll cover it…
Read MoreREST API – Statelessness
REST API When I was conducting a recruitment interview, I often met people who worked with Web APIs, but didn’t really know anything about it. Of course you can work with some technology, knowing only minimum that you have to know, but then you wouldn’t be here, right? Next couple posts will be about…
Read More