Entity Framework Pros and Cons: Choosing the Best Approach for Developers
Pros and Cons of Entity Framework database design approach given the analogy and differences between approaches.
Pros and Cons of Entity Framework database design approach given the analogy and differences between approaches.
Does the above exception message seem familiar to you and you must have faced it some time, maybe while using some versioning tool for your project like Git, TFS/TFVC, SourceSafe, etc or you might have a folder structure that ends…
Getting the week number of the year from the DateTime object can be implemented proprietary-ly but Microsoft does provide a way to get this calculated with a built-in method. Here is the way you can achieve this:
You might have heard about a keyword called “yield“, It is a contextual keyword in .NET and it makes the method’s context an iterator, which means your method can serve the purpose of an iterator by using yield return. Using…
There might be a time when you came across a situation when you are trying to load data in DataGrid in your WPF UI and UI gets Hanged (stuck) while the data is being loaded. You need to avoid this…
When writing Windows applications or services, Windows have a nice built-in tool called Event Viewer or Event Logs that can be used for logging purpose and helps greatly in debugging and tracing the applications’ critical logs. One can log the…
While writing a .NET application, we often need to create our own custom configurations and custom configs group (aka. Config Sections). Assuming that you already have appsettings.json added into your project and you are already reading the configuration values from…
A partial class is an ability to separate the implementation of a single class into multiple files and these files are combined to create in a single class when the code is compiled. Partial classes are created by using the…
When you create an object in a .NET or Java application, you don’t need to think about how it is stored in memory, because the .NET/Java framework takes care of that for you and does the necessary serialization. What about…
A static constructor is a way to initialize any static data or to perform a particular action that needs to be performed only once. A static constructor is called automatically before the first instance is created or any static member is referenced.…