Register dependencies via reflection + Autofac module
Imagine that you have ten or hundred class in your repository. And now you need to register each of them.
Register dependencies via reflection + Autofac module Read More
Imagine that you have ten or hundred class in your repository. And now you need to register each of them.
Register dependencies via reflection + Autofac module Read More
In 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. …
EF Core – Code First with existing database ASP.NET Core Read More
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 …
Simple way to generate xml with LINQ in C# Read More
Composite is a structural design patterns. Via wikipedia: The composite pattern describes that a group of objects is to be treated in the same way as a single instance of …
Composite pattern Read More
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 …
Simple Data – Example with compare Read More
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 …
Refactoring with TDD – “Currency example” Read More
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. …
TDD – Become a “better” programmer Read More
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 …
Loading data from excel and display them with Paged List MVC Read More
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 …
Wstrzykiwanie zależności i kontener Windsor Castle Read More
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 …
Automapper – przepisywanie danych Read More
Transakcje Transakcja jest zakresem w którym znajdują się polecenia związane z operacjami na bazie danych. Jeżeli operacje są wykonane prawidłowo to zostaną zapisane – w przeciwnym wypadku polecenia zostają cofnięte. …
Transakcje – bezpieczny zapis do bazy danych Read More
Entity Framework jest jedną z platform ORM, która pozwala na współpracę pomiędzy bazą danych a obiektowym językiem programowania. Dane które są pobierane za pośrednictwem EF są podzielone na dwa tryby: …
Lazy loading vs eager loading – Entity Framework Read More