CQRS – example of implementation
What 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 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 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 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 MoreASP.NET MVC Core Microsoft zrobił ogromny krok naprzód tworząc ASP.NET MVC Core. Aplikacje napisane w MVC można hostować i pisać nie tylko na systemie Windows ale i na Linuxie i …
Read MoreAutomapper – dlaczego i kiedy stosować tę bibliotekę? Automapper jest bardzo interesującą biblioteką. Może ona służyć do “przepisywania” danych (object-object). Warto skorzystać z niej jeżeli potrzebujemy przenieść dane np. z …
Read More