Uncategorized

Entity Framework Core Many-To-Many

How to handle Many-To-Many in Entity Framework Core

Many-To-Many relationship in not as straightforward as other relationships. In this post I’ll show you how to create many-to-many relationships and how to use them in EF Core. The model Simple and practical example of many-to-many could be some sort of digital ecommerce store. Users can put items into shopping cart (one shopping cart can …

How to handle Many-To-Many in Entity Framework Core Read More »

Post banner

Where() Select()

This post is quick intro for beginners. I’ll introduce you to 2 Linq methods Select and Where. We use those functions to manipulate data set. All 2 can be applied to all types implementing IEnumerable interface. It means that you can apply them to data retrieved from database (IQueryable), list (List/IList implements IEnumerable), arrays (which …

Where() Select() Read More »

Banner for joining and splitting strings in C#

Strings in C# – concatenating (joining) and splitting

As a programmer you’ll always have to deal with the strings. In this article you’ll learn the most basic string operations: concatenating/joining and splitting. Concatenating/joining strings Concatenation means that you append a one string at the end of another string. This happens directly or indirectly, but you should know that there are a few ways …

Strings in C# – concatenating (joining) and splitting Read More »

ASP.NET CORE XSS

ASP.NET CORE OWASP TOP 10 – Cross-Site Scripting (XSS)

Cross-site scripting (known also as XSS) is a type of attack aimed at web application users. Attacker injects client-side code (typically a JavaScript) into vulnerable web application in such a way that the script is run on on users browsers visiting vulnerable page. Imagine that you’ve build an web application allowing your users to send …

ASP.NET CORE OWASP TOP 10 – Cross-Site Scripting (XSS) Read More »