13 July, 2015

Hidden merging of the entities collections

Merge two collection of the entities? Sometimes in our applications we have problems with the performance of the operations, that are performed on the collections of the entities. Usually the problem is caused by a lot of joins between tables. If we don't want to build big, time consuming queries that...

31 May, 2015

Get rid of the duplicated entities that represent the view

The main problem Lately I was working on a problem, that was really surprising, before I understood it. I was querying the database to get some data using the Entity Framework 4. The entity was a representation of the view, which was joining a few tables. One of the information from the view was the...

10 May, 2015

17 April, 2015

How to generate a WCF service from the WSDL file?

Why we need to generate WCF service using WSDL? Usually we create our own webservices, but sometimes we need to create a mock of the webservice from which WSDL we have obtained. This situation may happen if we have to create a client of the third-party service to which the access is restricted. In that...

25 March, 2015

08 March, 2015

How to get database column property for entity?

Why getting the column property for the entity is a problem? When we use Entity Framework, we often want to get some information about some columns, that are a part of the database table, which is behind the entity. The most elegant way of getting this information is to use a partial class which contains...

10 February, 2015

How to use params in C# ?

Why it is sometimes to use params? Imagine, that you have a lot of code, that is complicated, hard to maintain and you have a small amount of time to make a change in it. For example, you need to change a parameter (e.g. width, height, color etc.) of a controls with a specific tag. Those controls may...