.net framework Archives - {coding}Sight https://codingsight.com/tag/net-framework/ Blog for SQL Server DBAs and Developers Wed, 06 Oct 2021 14:14:17 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.2 https://codingsight.com/wp-content/uploads/2021/10/cropped-Soсial_-Fb_180х180-1-32x32.png .net framework Archives - {coding}Sight https://codingsight.com/tag/net-framework/ 32 32 What dangers can the update of .Net 4.6.1 to .Net 4.6.2 hide? https://codingsight.com/what-dangers-can-update-of-dot-net-hide/ Wed, 08 Nov 2017 14:58:54 +0000 http://codingsight.com/?p=2665 In this article, I would like to share a solution of unexpected problem occurred in one of the projects I am currently working on. What dangers can the update of .Net 4.6.1 to .Net 4.6.2 hide? I thought that to avoid serious issues during the update to a minor version, it was enough to read …

The post What dangers can the update of .Net 4.6.1 to .Net 4.6.2 hide? appeared first on {coding}Sight.

]]>
More about Introduction of Time zones in long-lived Project https://codingsight.com/more-about-introduction-of-time-zones-in-long-lived-project/ https://codingsight.com/more-about-introduction-of-time-zones-in-long-lived-project/#comments Mon, 14 Aug 2017 13:35:51 +0000 http://codingsight.com/?p=1914 Some time ago, we started to adapt the system to the new market that requires support for time zones. Initial research was described in the previous article. Now the approach has slightly evolved under the influence of realities. This article describes the problems encountered during the discussions and the final decision that is implemented. TL;DR …

The post More about Introduction of Time zones in long-lived Project appeared first on {coding}Sight.

]]>
https://codingsight.com/more-about-introduction-of-time-zones-in-long-lived-project/feed/ 3
Events and Threads in .NET https://codingsight.com/events-and-threads-net/ Wed, 02 Aug 2017 14:19:44 +0000 http://codingsight.com/?p=1969 I’d like to tell you straight off that this article will concern not threads in particular, but events in the context of threads in .NET.  So, I won’t try arranging threads correctly (with all blocks, callbacks, canceling, etc.) There are many articles on this subject. All examples are written in C# for the framework version …

The post Events and Threads in .NET appeared first on {coding}Sight.

]]>
Simplifying Converters for WPF https://codingsight.com/simplifying-converters-for-wpf/ https://codingsight.com/simplifying-converters-for-wpf/#comments Mon, 24 Jul 2017 09:30:42 +0000 http://codingsight.com/?p=1863 I have been working with WPF for about a year and some things annoying me very much. One of such things is converters. Why do I need to declare the implementation of a dubiously looking interface somewhere at the deep of a project and then search for it through CTRL + F by name when …

The post Simplifying Converters for WPF appeared first on {coding}Sight.

]]>
https://codingsight.com/simplifying-converters-for-wpf/feed/ 3
OdataToEntity – an easy way to create .Net Core OData services https://codingsight.com/odatatoentity-an-easy-way-to-create-net-core-odata-services/ Fri, 14 Jul 2017 08:30:11 +0000 http://codingsight.com/?p=1798 When .Net Core was released, the old version of OData ASP.NET Web API turned out to be incompatible with the new platform. This fatal flaw allowed me to create my OData implementation on the .Net Core platform. After the creative rethinking of the previous implementation, I came to an understanding that it suffered from a …

The post OdataToEntity – an easy way to create .Net Core OData services appeared first on {coding}Sight.

]]>
Eliminating Duplication of Where Expressions in Application https://codingsight.com/eliminating-duplication-of-where-expressions-in-application/ Fri, 09 Jun 2017 07:46:36 +0000 http://codingsight.com/?p=1595 Assume you have products and categories. A client says that it is necessary to use other business processes for the categories with the rating value higher than 50. You have a solid experience and you understand that tomorrow this value may be different – 127.37. As you want to avoid this situation, you write the …

The post Eliminating Duplication of Where Expressions in Application appeared first on {coding}Sight.

]]>
Hangfire: Task Scheduler for .NET https://codingsight.com/hangfire-task-scheduler-for-net/ https://codingsight.com/hangfire-task-scheduler-for-net/#comments Thu, 01 Jun 2017 08:27:23 +0000 http://codingsight.com/?p=1567 Hangfire is a multi-threaded and scalable task scheduler built on client-server architecture on .NET stack (Task Parallel Library and Reflection) with the intermediate storage in a database. There is a free LGPL v3 version with open source. In this article, we are going to explore how to use Hangfire. Picture from hangfire.io Contents: Operation peculiarities Hangfire …

The post Hangfire: Task Scheduler for .NET appeared first on {coding}Sight.

]]>
https://codingsight.com/hangfire-task-scheduler-for-net/feed/ 2
Entity Framework: Improving Performance when Saving Data to Database https://codingsight.com/entity-framework-improving-performance-when-saving-data-to-database/ https://codingsight.com/entity-framework-improving-performance-when-saving-data-to-database/#comments Tue, 30 May 2017 11:26:46 +0000 http://codingsight.com/?p=1534 When adding or modifying a large number of records (10³ and more), the Entity Framework performance is far from perfect. The reasons are architectural peculiarities of the framework, and non-optimality of the generated SQL. Leaping ahead, I can reveal that saving data through a bypass of the context significantly minimizes the execution time. Contents Insert/Update …

The post Entity Framework: Improving Performance when Saving Data to Database appeared first on {coding}Sight.

]]>
https://codingsight.com/entity-framework-improving-performance-when-saving-data-to-database/feed/ 4
Entity Framework 6: Extensions You Might Be Unaware Of https://codingsight.com/entity-framework-6-extensions-you-might-be-unaware-of/ https://codingsight.com/entity-framework-6-extensions-you-might-be-unaware-of/#comments Fri, 14 Apr 2017 07:05:03 +0000 http://codingsight.com/?p=1195 Entity Framework 6 was and still remains a ‘workhorse’ for data access incorporate. NET-based applications primarily because of their stability, low barrier of entry, and wide renown. Therefore, I hope this article will still be useful. Contents Database First without EDMX Working with detached graphs SQL modification Data caching beyond the boundaries of the DbContext …

The post Entity Framework 6: Extensions You Might Be Unaware Of appeared first on {coding}Sight.

]]>
https://codingsight.com/entity-framework-6-extensions-you-might-be-unaware-of/feed/ 2
Comparing Objects by Value. Part 2. Implementation Notes of the Equals Method https://codingsight.com/comparing-objects-by-value-part-2-implementation-notes-of-the-equals-method/ Thu, 16 Mar 2017 09:12:17 +0000 http://codingsight.com/?p=766 In the previous article, we have reviewed a general concept of implementing a minimum set of required modifications that include overriding the Object.Equals(Object) and Object.GetHashCode() methods in order to compare class objects by value on a standard .NET framework. Let’s consider the implementation features of the Object.Equals(Object) method so that it meets the following documentation requirement: …

The post Comparing Objects by Value. Part 2. Implementation Notes of the Equals Method appeared first on {coding}Sight.

]]>