Reverse Engineer Your Way to Modernized Code

Many software developers are tasked with completely refactoring legacy code into new code bases using modern paradigms. An effective approach can be Model-Driven Engineering. With this approach, the old code is reverse engineered so that its functionality and hierarchy are fully understood. From this point of understanding, a clear model is formed. Then, as Rick… Continue reading Reverse Engineer Your Way to Modernized Code

learn LINQ in 5 minutes

Translating SQL to LINQ can prove difficult for new and experienced C# developers. This post contains common SQL queries written in LINQ. I hope it’ll serve as a reference when writing LINQ queries. I’ll use a MS SQL database and Entity Framework for my examples. However, these examples can be extracted to other ORMs and… Continue reading learn LINQ in 5 minutes

LINQ vs Lambda vs loop – A performance test

I was wondering about the benefits of using Linq over Lambda or vice versa for data filtering. I knew that the for loop was the fastest. But I was really interested to know whether lambda expression had any advantage over traditional LINQ syntax. For my understanding, both LINQ and lambda were same. Lambdas are the… Continue reading LINQ vs Lambda vs loop – A performance test

Pass Data from View to Partial View using session without using model

One of the place I had to pass a value from a view to a partial view but I was not supposed to alter the model. Hence. I went back to the roots and used session to pass the value between the views. Whats important here is that, as it is a session value, you can… Continue reading Pass Data from View to Partial View using session without using model