Avoid Caching with MemoryCache and GetOrCreate in .NET
GetOrCreate or its asynchronous counterpart GetOrCreateAsync is an extension method to create a cache entry if it does not exist yet.
Read Blog PostGetOrCreate or its asynchronous counterpart GetOrCreateAsync is an extension method to create a cache entry if it does not exist yet.
Read Blog PostConfiguring an ASP.NET Core application can be done in a variety of ways, including using command-line arguments, environment variables and JSON files. One way to ensure that the options you have configured for your application are valid is to use the IOptions
A NullReferenceException
is a common error that occurs in .NET applications when a null reference is accessed as if it were an object. This can happen when you attemp to call a method or access a property of a reference type variable that is null, or when a null reference is passed as an argument to a method that expects a non-null object.
Bicep has a great feature, which meanwhile also leads to warnings during execution if you don’t pay attention to it: the avoidance of static values like URLs in Bicep files. A corresponding warning looks like this:
Read Blog PostA full-text catalog in Microsoft SQL Server is a specialized storage that is used to store and manage full-text indexes for one or more tables in a database. A full-text index is a special type of index that is used to support fast, full-text searches of large amounts of text data. It enables users to search for words and phrases within a column of text data in a table and returns rows that contain the search criteria. Full-text indexes can be created on columns of data that are stored in character data types, such as char, varchar and text.
Read Blog PostMicrosoft Ignite is a classic IT conference, but it also has news for us developers regarding innovations in our ecosystem.
Read Blog PostExpressions are now an absolute part of a developer’s everyday life in .NET thanks to Linq.
However, due to their nature, expressions are not one of the very best performing tools, which is why the .NET team is also doing a lot to improve general performance while maintaining usability.
Read Blog Post.NET has two principal ways for handling times: DateTime and DateTimeOffset .
The big deficit of DateTime, which was also recognized early in .NET 1.0, is that it is not clear from the DateTime information which time zone the time information represents. Therefore DateTime is also called implicit representation of time information, whose “hope” is that the time information is always in relation to UTC-0. DateTime cannot guarantee this, which is why errors often occur in combination with time zones and DateTime. DateTime supports only two possibilities at this point: the local time of the application or UTC.
Read Blog PostMicrosoft has announced in an impressive blog post on the .NET DevBlogs that they have started an enterprise-wide migration to migrate backend services.
Read Blog PostSometimes it is quite useful to be able to send a query to the MSSQL server independently of its schema; for example to check if the server is principally reachable and the connection information as well as the credentials are correct.
Read Blog Post