OpenAPI – Swagger

How do you use Web APIs at your work? Simple, I need to open code to check what request is expected by action, then I need to check what response will be returned to me. When I have all the information I can start writing client code. If there are problems, for example I don’t…

Read More

Spike WebAPI

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 More

EF 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 More

Spike 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 More

Entity 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 More