Home > Asp.net

ContentFul: create asset for the uploaded file using .Net Core

When we upload a file in contentful, then it must be linked with an asset, other wise the uploaded file cannot be viewed or linked to an entry. Below are the steps mentioned that must be followed serially: 1) Upload the file in contentful from Blob Storage public async Task UploadFile(string filename)

This Article is TAGGED in , , . Read more

Refresh datasource, reset and run indexer using .NET Core and RestSharp

In this article, we are going to demonstrate the steps to refresh the data source, reset and run indexer in an azure cognitive search using .Net Core and RestSharp. Since we are going to refresh the data source and the data source here we are referring to is

This Article is TAGGED in , , , . Read more

Log Errors and store in database using NLog

Nlog is an open source log platform through which we can log an activity of an application and store in file, database and even in azure blob storage. Install following NuGet packages in your project: 1. Install-Package NLog-Version 4.7.10 2. Install-Package NLog.Web.AspNetCore- Version 4.12.0 3. Install-Package Microsoft.Data.SqlClient- Version 3.0.0 4. Install-Package Microsoft.Extensions.Logging.Console- Version 5.0.0

This Article is TAGGED in . Read more

Alphanumeric Sort Using PadNumbers

Problem Statement: Sort the Alphanumeric values Solution : below is the Code that helped to sort the alphanumeric values Example : you have the list var List = {a1,ba3,aa2,a2,ba2,aa3}; we can not sort this directly using [crayon-6736407c5e2f9238643534/] so to sort this we need to PadNumbers to value and then sort the List. with the help

This Article is TAGGED in , , . Read more

Backup and restore SQL Database to Azure Blob Storage Service in C#

Microsoft Azure Blob Storage is a scalable, online cloud data storage service that stores data blobs in containers. This article helps you understand how to write backups to and restore from the Azure Blob Storage Service and to do so we will create an Azure Blob Container, credentials for accessing the

This Article is TAGGED in , , , , , . Read more