ttmind

Main Content

Please wait...
ASP.NET Core Data Protection using IDataProtectionProvider With Example Find this Demo on Github This Process is easier for developers to use solid Cryptographic algorithm to make safe their data in the case you need to encrypt/decrypt your data frequently. With this, If you need to encrypt data, simply pass the data into the protect method. If you need to access the data again, pass the encrypted data into the Unprotect method, and it will be converted back into plaintext. By defa ....Read More
Routing in ASP.NET core 3.0 and What does it means Endpoint Routing? Routing in ASP.NET Core 3.0 Routing is the process of matching incoming path URL and corresponding to the action’s method in an application. Routes are described in applications and configured in Startup while starting app. A Route can extract the values form URL from the request and values can be used for processing request. By using routing information form applications, routing will be able to generate URL that ma ....Read More
Get File Size in C#. How to get a file size in bytes using C# using the FileInfo.Length property. The size of any file in bytes can be returned by the Length property of FileInfo Class. Following code returns the size of file: // To Get size of any file long FileSize = MyFile.Length; Console.WriteLine("File Size in Bytes: {0}", FileSize); Here, to run it we must import System.IO and System.Text namespaces in the project. Coding Implementation Here is the complete coding impl ....Read More
Here I am a going to explains how to send mobile notifications from Firebase using ASP.NET CORE 3.0 with Firebase Admin SDK. Follow the steps: Step 1: Add the FirebaseAdmin package by NuGet. Step 2: Get a Firebase service account key from Project Setting -> Service account -> Click on generate new private key. Step 3: Initialize the FirebaseAdmin SDK from Startup.cs public IServiceProvider ConfigureServices(IServiceCollection services) var googleCredential = _hostingEnvironment. ....Read More

C# Tuple and its use

C# tuple is a data structure Which contains a sequence of elements of different data types. Tuples were available before C# 7.0, but they were unproductive and had no language support. C# 7.0 introduces better tuples feature that enables semantic names for the fields of a tuple using new, more efficient tuple types. C# 7 introduced ValueTuple to reduce the limitations of Tuple and it is more easier to work with Tuple. Syntax Tuple<T1, T2, T3, T4, T5, T6, T7, TRest> an example below ....Read More

ASP.NET CORE - Blazor CRUD operation using ADO.NET

ASP.NET CORE - Blazor CRUD operation using ADO.NET You can find this Demo on github In this article, we are going to create a web application using Blazor with the help of ADO.NET. Here we are going to discuss about how to perform the Create, Read, Update and Delete also called CRUD operations in Blazor with ADO.NET.We will be creating a sample Customer Record Management System and perform CRUD using Blazor on it. Prerequisites: Install the .NET Core 2.1 or above SDK Install Visua ....Read More
Here we are going to build ASP.NET CORE 3.0 Web Application which will helps us to export C# list into CSV (Comma Separated Values). Let’s get started by creating New .net core web application. Now, add a new class called “ExportCSV.cs” inside controller folder. Open Add New Item Screen through Project name on Context Menu of Controller foder >> Add >> New Item >> Select Class. Name it ExportCSV.cs. Click OK button. Add following on ExportCSV impleme ....Read More

How to send the Email from Aspnet core?

Most of my project need common feature Sending Mail. In this article, we will learn how to send an email to given an email. We are using Mailkit that is available in NuGet. It is very simple. I am using Gmail SMTP. Create the new web project on Visual studio. Add Mailkit and MimeKit From Nuget. Mailkit MailKit is a cross-platform mail client library built on top of MimeKit. How to Add Mailkit in our project. Creating a project in visual studio. Right-click on your project name an ....Read More

File / Images Upload REST API using ASP.NET Core 3.0

Here is solution of: File Upload REST API using ASP.NET Core 3.0 Images Upload REST API using ASP.NET Core 3.0 Migrate Image API from ASP.NET Core 2.0 to 3.0 Migrate File API from ASP.NET Core 2.0 to 3.0 To build a REST service, We create an ASP.NET Core 3.0 Web Application project. Create new Project, Select Visual C#, Select Asp.Net Core Web Application, Provide suitable name, Click on OK Select API. And click on OK. Our Project look like this: Re ....Read More
Authentication refers to giving access to the specific system. It gives security from unwanted people from accessing data or site. ASP.NET core | SQL Stored Procedure | SQL SERVER | Encryption and Decryption | Authentication and Authorization Authorization refers to limiting the access of the system to the user according to their roles. There are different roles in an organization and we can provide access to the resources according to their position or role in the organization. There are ....Read More