π Week 45
Beware - Setting A Database Timeout Of 0 Is A Bad Idea
[C#, .NET, Dapper]
When interacting with a database, of whatever kind, you will need to establish a connection to the database using the access technology of choice - either Entity Framework, Dapper, or direct ADO (ActiveX Data Objects).
How To Check If You Can Write To A File In C# & .NET
[C#, .NET]
Writing to files is one of the common operations that you will be doing in the course of your work as a software developer.
Using The Field Keyword In C# & .NET
[C#, .NET]
One of the most powerful features of .NET is properties.
π Week 44
Creating Static Extension Properties In C# & .NET
[C#, .NET]
Yesterdayβs post, βCreating Static Extension Methods In C# & .NETβ, discussed how you can write static extension methods for an existing type.
Creating Static Extension Methods In C# & .NET
[C#, .NET]
Last week, there was a series of posts that implemented extension methods to add some functionality to the DateOnly and DateTime types.
Writing & Testing Code That Expects The Current Date & Time Using The TimeProvider in C# & .NET
[C#, .NET]
A very common challenge to which you will be writing code for is problems revolving around the current date and time.
Working With appsettings.json In A Team In C# & .NET
[C#, .NET, Settings]
In a previous post, βSetting the Staging & Production Environments During Developmentβ, we discussed how the .NET runtime can be leveraged to load settings depending on the environment.
Generating A .NET Friendly .gitignore
[.NET, Git]
When you create a new project in .NET, in whatever language - C#, F#, or VB.NET, a number of files are generated.
Using Extension Members To Add Properties To Types In C# & .NET
[C#, .NET, Dates]
Over the last week, we have written extension methods to extend the functionality of the DateOnly and the DateTime types.
Adding Date Computations Support To DateTime In C# & .NET
[C#, .NET, Dates]
Over the last 6 days, we have written a bunch of extension methods for the DateOnly type to make a number of date computations easier.
π Week 43
Getting The Start and End Of The Next Year In C# & .NET
[C#, .NET, Dates]
The previous post, βGetting The Start and End Of The Previous Year In C# & .NETβ, discussed how to get the start and end dates of the previous year given a DateOnly.
Getting The Start and End Of The Previous Year In C# & .NET
[C#, .NET, Dates]
The previous post, βGetting The Start and End Of The Current Year In C# & .NETβ, discussed how to get the start and end dates of the current year given a DateOnly.
Getting The Start and End Of The Current Year In C# & .NET
[C#, .NET, Dates]
The previous post, βGetting The Start and End Of The Next Quarter In C# & .NETβ looked at how to get the start and end of the next quarter, given a DateOnly.
Getting The Start and End Of The Next Quarter In C# & .NET
[C#, .NET, Dates]
The previous post, βGetting The Start and End Of The Previous Quarter In C# & .NETβ, looked at how to compute the last and first days of the previous quarter.
Getting The Start and End Of The Previous Quarter In C# & .NET
[C#, .NET, Dates]
The previous post, βGetting The Start and End Of A Quarter In C# & .NETβ, looked at how to get the start and end of a quarter.
π Archives ...