dotnet falcon

Blogging about .NET and software development - from my bird's eye view

Danger zone: true, false or...

Danger zone: true, false or...

Nov 1, 2017
As an MCT I regularly teach courses of different levels. And I have to say, I love teaching — that's the most efficient way to learn :) A participant at one of my advanced courses brought me this little 'problem' (of course, this is not a 'real&
Back to the basics: Overload resolution in C#

Back to the basics: Overload resolution in C#

Oct 21, 2017
During one of my courses, and interesting question came up. Let's say you have a class definition like this: public class Test<T> { public void Method(T parameter) {} public void Method(int parameter) {} } // ... // Test<int> object = new Test<int>(); // object.Method(7)
StackOverflow adventures: Don't create non-clustered index for foreign keys with Entity Framework Code First

StackOverflow adventures: Don't create non-clustered index for foreign keys with Entity Framework Code First

Sep 20, 2017
I found an interesting question on stackoverflow: https://stackoverflow.com/questions/46212828/ef6-preventing-not-to-create-index-on-foreign-key OP wanted to find a way to disable index creation for foreign keys. I don't believe there is an easy way to do this; my mind turned right to custom SQL generators and scaffolders. Using