Skip to content
31 March 2023

Paweł Filipek

  • Backend
    • C#
    • Entity Framework
    • Security
  • Frontend
    • Angular
    • JQuery
  • Databases
    • SQL
  • Design pattern
    • Domain-Driven Design
    • CQRS
    • TDD
    • Software Design Patterns
  • DevOps
    • RabbitMQ
    • Docker
    • Elasticsearch
  • Tools
  • Get noticed 2017
  • About me
Main Menu

C#

Backend / C# / CQRS / Design pattern

CQRS – example of implementation

27 August 201831 March 2019 - by Paweł Filipek - 2 Comments.

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 More
register dependency
Backend / C# / Tools

Register dependencies via reflection + Autofac module

28 July 201828 July 2018 - by Paweł Filipek - Leave a Comment

Imagine that you have ten or hundred class in your repository. And now you need to register each of them.

Read More
Backend / C#

Logging of every action call in controller

30 June 2018 - by Paweł Filipek - Leave a Comment

If 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 More
Backend / C# / DevOps / Elasticsearch / Tools

Configure Nlog with Elasticsearch in ASP.NET Core

30 April 201829 September 2019 - by Paweł Filipek - Leave a Comment

It’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 More
Backend / C#

Simple way to generate xml with LINQ in C#

28 January 201829 January 2018 - by Paweł Filipek - 1 Comment

Generate 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 More
Backend / C#

BackgroundWorker – loading in the background – example C#

7 May 201717 September 2017 - by Paweł Filipek - Leave a Comment

BackgroundWorker 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 More
Backend / C# / Frontend

Generate PDF in ASP.NET Core

29 April 201717 September 2017 - by Paweł Filipek - 1 Comment

Generate 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 More
Backend / C#

Tuple Class – C#

16 April 201717 September 2017 - by Paweł Filipek - Leave a Comment

Tuple 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 More
Backend / C#

LinkedList – example

23 March 201717 September 2017 - by Paweł Filipek - 1 Comment

LinkedList 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 More
Backend / C#

Parse xml – Linq to Xml

4 March 201717 September 2017 - by Paweł Filipek - Leave a Comment

How 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 More
Backend / C# / Tools

Simple Data – Example with compare

30 October 201617 September 2017 - by Paweł Filipek - 3 Comments.

Simple 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 More
Backend / C# / Design pattern / TDD

Refactoring with TDD – “Currency example”

16 October 201631 March 2019 - by Paweł Filipek - 1 Comment

Today, 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 More
Backend / C# / Design pattern / TDD

TDD – Become a “better” programmer

1 October 201631 March 2019 - by Paweł Filipek - 1 Comment

TDD 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 More
Backend / C# / Tools

Loading data from excel and display them with Paged List MVC

18 September 201617 September 2017 - by Paweł Filipek - Leave a Comment

Today’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 More
Backend / C# / Tools

Wstrzykiwanie zależności i kontener Windsor Castle

28 August 201617 September 2017 - by Paweł Filipek - 1 Comment

Wstrzykiwanie 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
Backend / C#

Co nowego w ASP.NET MVC Core

20 August 201617 September 2017 - by Paweł Filipek - Leave a Comment

ASP.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 More
Backend / C# / Tools

Automapper – przepisywanie danych

12 August 201617 September 2017 - by Paweł Filipek - 3 Comments.

Automapper – 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
Copyright © 2023 Paweł Filipek.
Powered by WordPress and HitMag.