Auth Guard (JWT) in Angular
In the previous post I showed how to manage a token in an angular application. Now I show you how you can use the Auth Guard mechanism so that you …
Read MoreIn the previous post I showed how to manage a token in an angular application. Now I show you how you can use the Auth Guard mechanism so that you …
Read MoreIn the previous post, I showed you how to create a token in ASP.NET Core. Now I will show you how you can use it in a project that uses …
Read MoreHow to create token in ASP.NET Core In this post I will demonstrate how to create a authentication token in an ASP.NET Core Web Api application.
Read MoreWhat is CQRS? Let’s start with what is CQS (Command Query Separation) because CQRS (Command Query Responsibility Separation) are derived from it. CQS (Command Query Separation) This approach says that …
Read MoreImagine that you have ten or hundred class in your repository. And now you need to register each of them.
Read MoreIf you want to log every action execution in the ASP.NET MVC application. Instead of adding unnecessary logic ( to logging ) in each action. We can override method OnActionExecuting …
Read MoreIt’s always nice to have logs from our applications. Nlog is a solid open-source library in .NET that supports save the logs. However, when we add elasticsearch to it, searching …
Read MoreIn ASP.NET Core using a Entity Framework Core we only have the option to connect with a database by aproach code first. Edmx and Dbml will not be supported anymore. …
Read MoreGenerate XML with LINQ. I show you how you can create xml file in a readable and simple way by using LINQ. At first I using the object XElement to …
Read MoreWe know that it’s very dangerous to hold explicit passwords in a database. That is why it’s the best to get them hash but how to do it? Hash password …
Read MoreBackgroundWorker Thanks to this class, we can open the window(form) immediately and eg. all data can be loaded in the background. This is usefull becouse basic Windows application runs on …
Read MoreGenerate PDF If we write application in version MVC 5 or less. We can use simple to use library like Rotativa. But what if we have apps on ASP.NET MVC …
Read MoreTuple class With tuple class (available from version .Net 4.0) our function can return more then one value. I’ll show you on a simple example. Imagine that we want to …
Read MoreLinkedList When we need to put some collections into stack(LIFO) or queue(FIFO). The soulition is simple, we create class Stack if we need a “last in first out” strategy and …
Read MoreHow to parse xml? It’s very simple. Linq offers us an extension specifically for this task – Linq to XML. Let’s assume that we have to parse XML which is …
Read MoreSimple Data Simple.Data is dynamic ORM. But What mean ORM : O – object, R – Relational, M – Mapping. But if simple data is dynamic we haven’t objects, relationals, mapping. So …
Read MoreToday, I’ll show a program based on a TDD approach which I explained in a previous article. At the beginning it will have two classes representing two currencies “złoty” and “euro”. I’ll test …
Read MoreTDD Test-Driven Development is not just for testing. TDD is a technique for programming. TDD philosophy is based on the writing of code in the first place before production code. …
Read MoreToday’s post will be different because it will be in English language. I’ll write a simple application MVC with data import from excel and displey them on the page(View) with …
Read MoreWstrzykiwanie zależności i biblioteka Windsor Castle. Dzięki zastosowaniu tych dwóch rzeczy możemy naszą aplikacje przekształcić w kod prosty i zrozumiały poprzez zależności. Dodatkowo przy zastosowaniu kontenerów (Windsor Castle) dostajemy gotowy …
Read More