Five Little Tricks to Make Your Life with Entity Framework Easier

Five Little Tricks to Make Your Life with Entity Framework Easier
   The history of data access technologies in .NET is not a pretty one. Microsoft told us to do DataSets, then SqlDataSource, then LINQ to SQL, then Entity Framework in one way, then Entity Framework in another way. In the meantime many people were using raw ADO.NET and wrote their SQL by hand and other people were using NHibernate. It seems that things have finally settled down. DataSets, DataSources and LINQ to SQL are pretty much dead and it seems NHibernate is about to join them. The people who love control over their SQL are still a minority but they are doing just fine and have added some tools like Dapper to their belts. For the past four or five years most people have been doing (at least for new projects) what Microsoft calls Entity Framework Code First which is a name that in typical Microsoft fashion is very confusing and inaccurate. If you are in that camp you might find the knowledge I am about to share useful. It has come with a lot of battle scars...
Posted by:   Stilgar
10:22 08.02.2016

C# 6.0 Features

C# 6.0 Features
   C# 6.0 has been officially released along with the Roslyn compiler platform. I feel it is my duty to inform the world of my opinion on the topic as undoubtedly millions are interested to learn what they should think about it. Adopting mine is the easiest way to have a correct opinion...
Posted by:   Stilgar
22:12 30.07.2015

Discrediting Questions about the Next Number in a Series with the Lagrange Polynomial

Discrediting Questions about the Next Number in a Series with the Lagrange Polynomial
   For quite some time I have been annoyed by the kind of IQ test questions where you are given a series of numbers, quite often without any explanation and are expected to provide the following number in the series. These are the type of questions I fail most often on IQ tests and maybe this is the reason I hate them so much. I can accept that I am stupid but I cannot accept people claiming that these are Math problems. This is not simply not Math. This is anti-Math...
Posted by:   Stilgar
17:34 09.07.2015

Implementing IDisposable on Types which Own an IDisposable

Implementing IDisposable on Types which Own an IDisposable
   Implementing IDisposable is a subject discussed so many times that it is highly unlikely I have anything to add that is not common knowledge. However checking the whole first page of Google results did not yield any article that mentions how to implement IDisposable on objects that own an IDisposable object. While the actual code is simple I have seen people forget to implement it or use the unnecessarily heavy Disposable pattern to implement it. But first…
Posted by:   Stilgar
23:02 14.01.2015

Happy Programmers' Day 2014

Happy Programmers' Day 2014
   Happy Programmers' Day to everyone whose job is to move bytes around or just does it for fun. Interestingly the Wikipedia article says Programmer's day is observed in Bulgaria. I wonder if this is official.
Posted by:   Stilgar
16:55 13.09.2014
First Previous 1 2 3 4 5 6 7 8 9 10  ... Next Last