.Net

5 steps of how to add and use AutoMapper in .Net Core project

AutoMapper is a simple little library which allows you to make less code for transforming objects of one class to another. It’s a must-have library for any complex project. There is a short scenario in 5 steps how to add and use AutoMapper in a new Net Core project with REST API. Read more»

.Net & C#

Flexible and simple Export to Excel for .Net

Once again I have to make Export of to Excel. And this time there are requirements to the template – colors, formatting and others. Not so long ago I implemented the export to Excel with XLSX package for React, and it was rendered at client. This solution is good but has many constraints. So, I […] Read more»

.Net & C#

C# Convert DataTable to List generic collection

C# snippet below helps to read SQL data to List<T> generic collection without any extensions or frameworks only with SQL and LINQ. Read more»

.Net & C#

CRC has failed with DotNetZip (Ionic.Zip) library

Junior developer created some tools which packed to zip-archive some rendered files. He used for this DotNetZip (Ionic.Zip) library. Everything worked fine until today. But today, when users users tried to open zip-file, they’ve got the error “CRC has failed, the file is corrupt”. Read more»

.Net & C#

C# WebClient return an error (401) Unauthorized. Easy fix

My code in C# console application used to download an image from web service and store it in SharePoint library. But some why the code always returned an error “(401) Unauthorized”. The requested URL has been successfully opened in browser on the same machine. Read more»

.Net & C#

Popular Posts