In this tutorial, readers will learn how to implement asynchronous data access using Dapper in ASP.NET Core applications. Understanding asynchronous programming is crucial for building responsive and scalable web applications, especially when dealing with database operations. Familiarity with C#, ASP.NET Core, and basic SQL is recommended to follow along effectively.
C#
All blogs tagged with C#
Showing 72 of 72 articles
In this guide, you will learn how to effectively connect an ASP.NET Core application to an IBM DB2 database using C#. Understanding this connection is crucial for building enterprise-level applications that require robust data management. Before diving in, readers should have a basic understanding of ASP.NET Core and familiarity with C# programming.
This tutorial provides a comprehensive guide on integrating ASP.NET Core Identity with NHibernate for effective user management. Understanding this integration is crucial for modern web applications that require scalable and secure authentication and authorization mechanisms. Readers should be familiar with C#, ASP.NET Core basics, and the fundamental concepts of NHibernate ORM.
This blog post provides an in-depth exploration of unit testing NHibernate repositories within ASP.NET Core projects, covering the theory, practical implementations, and best practices. Understanding how to effectively test these repositories is crucial for ensuring data integrity and application reliability. Readers should have a basic knowledge of C#, ASP.NET Core, and unit testing principles.
Readers will learn advanced techniques for optimizing NHibernate in ASP.NET Core applications, focusing on performance improvements. Understanding these concepts is crucial for building scalable and efficient applications that handle large datasets without compromising speed. Prior knowledge of ASP.NET Core and basic NHibernate configurations is recommended.
This comprehensive guide delves into troubleshooting NHibernate errors within ASP.NET Core applications, providing readers with the knowledge to identify, analyze, and resolve common issues. Understanding NHibernate's behavior and error messages is crucial for maintaining robust data access layers in enterprise applications. Prior familiarity with ASP.NET Core and basic ORM concepts will enhance the learning experience.
This guide explores how to enhance user experience in .NET 6 applications using the Semantic Kernel. You'll learn about its capabilities, practical implementations, and best practices for leveraging its features. Follow along with the provided code examples to see how you can improve your applications effectively.
This comprehensive guide delves into CWE-119, focusing on buffer overflow vulnerabilities in C#. Readers will gain a deep understanding of how these vulnerabilities arise, their implications, and how to prevent them in production code. A solid grasp of memory management and C# programming is recommended to fully benefit from this post.
In this blog post, readers will learn about advanced dependency injection patterns in .NET Core, including how to implement and use these patterns effectively. By the end of this article, you will have a strong understanding of dependency injection and its significance in building modular and testable applications.
In this blog post, we will explore the new features introduced in .NET 10 that enable developers to build modern applications more efficiently. By understanding how to utilize these features, you can enhance performance, streamline development, and improve code maintainability.
In this blog post, we will explore the essential concepts of memory management and garbage collection in .NET, focusing on how these features work in C#. You'll learn about the significance of memory management, the role of the garbage collector, and best practices to optimize memory usage in your applications.
In this blog post, we will explore the new features of Records and Pattern Matching introduced in C# 9 and above. These features provide a modern approach to defining data structures and make it easier to write expressive and readable code.
In this blog post, you will learn about Extension Methods in C#, a powerful feature that allows you to add new methods to existing types without modifying their source code. We will explore what extension methods are, how to create and use them, and best practices to follow.
In this blog post, we will explore three foundational design patterns in C#: Singleton, Factory, and Observer. Understanding these patterns will enhance your software design skills and help you create more maintainable and scalable applications.
In this blog post, you will learn the essentials of unit testing in .NET using the xUnit framework. We'll cover how to set up xUnit, create tests, and implement best practices to ensure your code is reliable and maintainable.
In this blog post, you will learn about the concept of reflection in C#, how it works, and why it is a powerful tool for dynamic type inspection and interaction. We will explore its fundamental concepts, practical examples, and best practices to help you utilize reflection effectively in your applications.
In this blog post, readers will learn how to effectively handle file input and output operations in C#. We will cover reading from and writing to text files, using streams, and working with file paths, providing practical examples along the way.
In this blog post, you'll learn about exception handling in C#, a critical aspect of robust software development. We will explore its concepts, common patterns, and best practices to ensure your code is resilient and user-friendly.
In C#, collections are essential data structures that allow developers to manage groups of objects efficiently. This blog post will cover four primary types of collections: List, Dictionary, Queue, and Stack, including their usages and practical examples.
In this blog post, you will learn what generics are in C#, their importance in creating type-safe and reusable code, and how to implement them effectively. We'll cover fundamental concepts, practical examples, and best practices to help you leverage generics in your C# projects.
In this blog post, you will learn about Dependency Injection (DI) in ASP.NET Core, a crucial design pattern that promotes loose coupling and enhances testability in your applications. We will cover its concepts, implementation, and best practices to help you effectively use DI in your projects.
In this tutorial, you'll learn the fundamentals of ASP.NET Core MVC, a powerful framework for building web applications using C#. By the end, you'll understand how to create a simple MVC application, manage data, and implement best practices.
In this tutorial, you will learn the fundamentals of Entity Framework Core, a powerful Object-Relational Mapping (ORM) tool in C#. We will explore key concepts, set up a real-world application, and provide practical examples to help you effectively manage data access in your applications.
In this blog post, you will learn about the concepts of async and await in C#, their significance in improving application performance, and how to implement them effectively. We'll explore the fundamentals, practical examples, best practices, and common pitfalls to avoid.
In this blog post, readers will learn about LINQ (Language Integrated Query) in C#, including its syntax, usage, and best practices. By the end, developers will be equipped to utilize LINQ to write cleaner and more efficient code when querying collections.
In this blog post, we will explore the concepts of delegates and events in C#, understanding how they facilitate communication between different components of a program. You'll learn how to implement and utilize these powerful features to create more flexible and maintainable code.
In this blog post, we will explore the concept of abstract classes in C#, how they are defined, and why they are essential in object-oriented programming. You'll learn how to implement abstract classes with practical code examples, and discover best practices to avoid common pitfalls.
In this blog post, we will dive deep into the concept of interfaces in C#. You'll learn what interfaces are, their importance in object-oriented programming, and how to implement them effectively in your code.
In this blog post, you will learn about the principles of encapsulation and access modifiers in C#. We will explore how these concepts help in protecting data and maintaining the integrity of your code.
In this blog post, you will learn about polymorphism in C#, a fundamental concept in object-oriented programming. We will explore its different types, how it enhances code flexibility, and see real-world applications through complete code examples.
In this blog post, you will learn about the concept of inheritance in C#, a fundamental feature of object-oriented programming. We will explore its types, advantages, and practical applications through detailed examples, providing you with a solid foundation to implement inheritance in your own projects.
In this blog post, you will learn the fundamental concepts of Object-Oriented Programming (OOP) in C#, including classes, objects, inheritance, encapsulation, and polymorphism. Understanding these concepts is crucial for building scalable and maintainable applications in C#.
In this blog post, you'll learn about the fundamental concepts of variables and data types in C#, along with how to perform type conversion. This knowledge is essential for writing efficient and error-free code in any C# application.
In this blog post, you will learn the fundamentals of C# programming, including key concepts, syntax, and practical examples. By the end, you will be equipped to write basic C# applications and understand essential programming principles.
In this blog post, you will learn about lambda expressions in C#, including their syntax, usage, and benefits. By the end, you'll be able to effectively incorporate lambda expressions into your C# projects.
Get random number in asp.net C#
This tutorial demonstrates how to accept payments with Stripe Checkout in an ASP.NET Core 8.0 application built with C# . The application uses Checkout to accept credit cards from the end user and send tokens to a back-end API. The back-end controller uses the Stripe .NET library to create a charge. We are using latest version on Stripe.Net api in this. Check out complete steps to Integrate Stripe Payment Gateway In ASP.NET Core 8.0
This tutorial demonstrates how to accept payments with Stripe Checkout in an ASP.NET Core 7.0 application built with C# . The application uses Checkout to accept credit cards from the end user and send tokens to a back-end API. The back-end controller uses the Stripe .NET library to create a charge. We are using latest version on Stripe.Net api in this. Check out complete steps to Integrate Stripe Payment Gateway In ASP.NET Core 7.0
This tutorial demonstrates how to accept payments with Stripe Checkout in an ASP.NET Core application built with C# and Web Forms. The application uses Checkout to accept credit cards from the end user and send tokens to a back-end API. The back-end controller uses the Stripe .NET library to create a charge. We are using latest version on Stripe.Net api in this. Check out complete steps to Implement Stripe Payment Gateway In ASP.NET Core
Zoom API integration in ASP.NET empowers developers to seamlessly incorporate Zoom's powerful video conferencing capabilities into their ASP.NET applications.In this article we will see creating zoom meeting in asp.net mvc using zoom api step by step.
The List class has a lot of useful methods that you can use to organize data. This article will cover how to sort the items in your list and make them easier to read. The Sort method is the simplest way to sort a C# list
JSON (JavaScript Object Notation) is a lightweight data interchange format commonly used for transmitting data between multiple systems, mostly in Web APIs and client applications. JSON is a text-based format that is easy for humans to read and write and also easy for machines to parse and generate. It is language-independent, meaning it can be used with any programming language that has the capability to parse JSON data.
To generate an image using C#, you can utilize the System.Drawing namespace, which provides classes for working with images. Here's a simple example that demonstrates how to create a new image and save it to a file:
The Regex class in C# is part of the System.Text.RegularExpressions namespace. It provides a way to work with regular expressions, allowing you to perform pattern matching and manipulation of text. Here are some common operations you can perform using the Regex class:
To obtain the IP address of a device using C#, you can use the Dns class from the System.Net namespace. Here's an example of how you can retrieve the IP address:
Hello guys, sometimes we need to get mime type for specific file types. So we will see how we can get mime type for any file extension in Asp.Net.
Hello guys sometimes we often need to convert base64 to tiff data and we have to verify if the base64 is correct for tiff image. So we will see how to Verify If base 64 string is valid for tiff image in C#.
In this article we will learn some basics of how we can use Asynchronous Programming in C# . We will see some code examples for that.
Hello guys we often need to implement social logins in our web applications. And Linkedin Login has become one of the popular social login that is getting used widely now a days. So we will see how to integrate Linkedin Sign In using LinkedinLogin Nuget package in Asp-Net MVC.
For many applications, you want to create and manage groups of related objects. There are two ways to group objects: by creating arrays of objects, and by creating collections of objects. Arrays are most useful for creating and working with a fixed number of strongly typed objects. For information about arrays, see Arrays.
Hello guys, sometimes while using asp.net web application we face need to read json data from json files and parse them in c# . So will see how to read json data from file and parse using Asp.Net.
Hello guys, sometimes while working with you asp.net mvc application we often need to have mapping between database objects to other objects. Often we do that mannually and we can also use automapper to automate mapping between similar kinds of object. So we will see how to implement AutoMapper in asp.net mvc.
Hello guys, sometimes while working with Asp.Net application and mobile apps we often need to use Firebase database . So we will be using Firebase Database in Asp.Net web application.
Hello guys, often we want to support file upload in web applications and you will notice if you try to upload file more than 4MB you will face error Maximum request length exceeded .We will see how to fix error maximum request length exceeded in asp.net mvc.
Hello guys , now a days we often provide users the ability to upload images in our web projects. But we have to sometimes utilize the memory for big size images as they can easily full up the memory of server. So for that we can use image compression while uploading image. In this article we will see how to perform Image Compression in Asp.net MVC.
Hello guys, while creating asp.net core application we often need to implement export of data and for this purpose we sometimes need to export views to pdf file. So, We will see how to export view as pdf in Asp.Net Core MVC in simple steps using itextsharp library which is free.
Hello guys we often need to implement social logins in our web applications. And Linkedin Login has become one of the popular social login that is getting used widely now a days. So we will see how to integrate Linkedin Sign In using LinkedinLogin Nuget package in Asp-Net MVC.
Hello guys, sometimes while working in your asp.net web project . We face the need of converting our html to image on in other words we want to save our html output as image in your system. So, we will see how to Convert HTML String To Image In C# Asp.net.
Hello guys in this article we will see how to solve an exception when you try to use old rdlc report and make changes into that . You will see you will get an exception ReportProcessingException: The report definition is not valid. Details: The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition' which cannot be upgraded. We will see how to solve that.
This tutorial demonstrates how to accept payments with Stripe Checkout in an ASP.NET Core application built with C# and Web Forms. The application uses Checkout to accept credit cards from the end user and send tokens to a back-end API. The back-end controller uses the Stripe .NET library to create a charge. We are using latest version on Stripe.Net api in this. Check out complete steps to Implement Stripe Payment Gateway In ASP.NET Core
Hello guys, sometimes we need to import data from excel file in asp.net MVC using OLE DB. So we will use OLE DB Connection for that as that is really fast and effective while reading large excel files. You can check the steps on using that with asp.net MVC project.
Hello guys, while working in Asp.Net MVC or .Net core we often need to convert datatable to list of classes. We will learn how to create a extension method that will help in converting datatable to list without any extra efforts required.
Hello guys, in this article we will discuss a issue that we face when we use sfgrid in Blazor. So sometimes while using SfGrid when we want to refresh data source of grid with different schema it doesn't refresh properly. We will see how to fix the issue Changing sfgrid datasource does not work in Blazor.
Hello guys, we often need to export data from database into excel files in ASp.Net mvc using ClosedXML Xlworkbook. XlWorkbook is a third party library that helps in exporting excel file from datatable or dataset easily amd allows many formatting options that helps in better presenting data in excel.
Hello guys, we all would have used cookies in our Asp.Net Core web projects. If you have used httpcookies in Asp.Net core 2.1 project and you are trying to update your .Net core version to 3.1 . You will notice your HttpCookies are not working there. So, we will see how to fix HttpCookies Issue with Asp.Net Core 3.1.
Hello guys, sometime we need to shuffle our list or array randomly without being in a certain order. So , in this article we will learn how to shuffle a list randomly in c#.
Hello guys, sometimes we need to import data from excel file in asp.net . So we will use ExcelDataReader for that. You can check the steps on using that with asp.net project.
Hello guys, you might have noticed while working with .Net core 3.1 that whenever you make any client side change(html,css,js). It doesn't reflect in browser even after reload. So we will learn how to solve the issue Visual studio not refreshing changes in browser on reload.
Hello guys, in this article we will learn about how to implement Url Encryption in Asp.Net MVC . There are few ways which provides url encryption but seems really difficult to implement. In our article we will use simple custom Html helpers for url encryption.
In this article we will see how to solve issue 'ConfigurationBuilder' does not contain a definition for 'SetBasePath' and no extension method 'SetBasePath' accepting a first argument of type 'ConfigurationBuilder' could be found (are you missing a using directive or an assembly reference? in .Net Core 3. We will see how to ready json files in .Net core 3.
In this article we will see how to highlight code segments in in your website with js. We will be using Prism js syntax highlighter for this. Prism is a lightweight, extensible syntax highlighter, built with modern web standards in mind. It’s used in millions of websites, including some of those you visit daily.
In this article, I will be explaining how an email can be send using ASP.NET with C#. I will be working on window forms of asp.net web application.I will be demonstrating how to use asp.net to build web application to send an email.