The .ToDictionary()
extension will throw an argument exception if we have duplicate keys added to the dictionary.
The .ToDictionary()
extension will throw an argument exception if we have duplicate keys added to the dictionary.
To update many records in entity framework, it is good to use the .Attach
method of the db context instead of looping through every record and fetching the data through EF and updating it.
A strategy design pattern is the most commonly used design pattern in computer programming.
In this post, we’ll start with a basic switch case statement and then we’ll modify the code into strategy design pattern.
This post is a sequence for the previous article which shows why the Func delegate is not translated into the SQL statements.
This post as you read from the title is about unit testing for private methods. Do we really need to test the private methods in the unit tests?
In this post, I’ll show you what happens when you use a func delegate on the Entity Framework entities.
Filtering an item from a list of items is easy but if the item to filter is not known at compile time then filtering a list will be little complicated.
In this post, we’ll try to find the shortest word in a string using LINQ.
Every developer writes a switch case statement at least once in their life of programming but as he/she understands the switch is no longer maintainable they tend to look for patterns and do refactoring.
In this post, we’ll see what’s actually inside of a switch case statement.
In this post, we’ll see how to generate sequence numbers along with the data that we need in LINQ C#.
Update your browser to view this website correctly. Update my browser now