TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Tags
No tag found
Content Filter
Articles
Videos
Blogs
Resources
News
Forums
Interviews
Complexity Level
Beginner
Intermediate
Advanced
Refine by Author
[Clear]
Jitendra Mesavaniya(11)
Sardar Mudassar Ali Khan (10)
Ajay Kumar(9)
Allam Purushotham(7)
Jobin S(3)
Ayush Gupta(3)
Allani Saikumar(3)
Chethan N(3)
Prasad (3)
Rajashekar Syereddy(3)
Jaimin Shethiya(2)
George (2)
Alpesh Maniya(2)
Mariusz Postol(2)
Vikas Singh(2)
Mahender Pal(2)
Keyur (2)
Raj Bhatt(2)
Chetan Sanghani(1)
Adarsh Nigam(1)
Rasul Huseynov(1)
Muhammad Talha(1)
Velladurai (1)
Manoj Kalla(1)
Ravi Kiran Chanduri(1)
Ashutosh Singh(1)
Jayraj Chhaya(1)
Aman Patel(1)
Shiv Sharma(1)
Muneeb Mughal(1)
Tural Suleymani(1)
Mithilesh Tata(1)
Jignesh Kumar(1)
Ziggy Rafiq(1)
Vishal Yelve(1)
Vijay Pratap Singh(1)
Dinesh Gabhane(1)
Muzaffar Ur Rahman(1)
Muhammad Asif(1)
Amit Mohanty(1)
Anandu G Nath(1)
Ankit Sahu(1)
Abhishek Mishra(1)
Bhavesh Raval(1)
Nandan Hegde(1)
Ramawatar Bhakar(1)
Satyaprakash Samantaray(1)
Resources
No resource found
Using Find Instead of FirstOrDefault with Collections in C# .NET
Jul 15, 2024.
When working with collections in C# .NET, FirstOrDefault and Find serve similar purposes of retrieving elements based on conditions. FirstOrDefault is versatile for any IEnumerable<T>, while Find is optimized for List<T>, offering potentially better performance in list operations.
Working with Entity Framework Core
Jul 15, 2024.
Entity Framework Core (EF Core) is a powerful Object-Relational Mapping (ORM) framework provided by Microsoft for .NET applications. It simplifies data access and persistence by allowing developers to work with databases using .NET objects, thus abstracting away the complexity of database interactions.
The Unit of Work Pattern in C# for Modern Applications
Jul 11, 2024.
Explore the Unit of Work pattern in C#, essential for modern application development. Discover how it facilitates efficient database operations, manages transactions with Entity Framework, and enhances the scalability and maintainability of your data access layer.
Retrieving Entity Record IDs in CRM Plugin D365 CE
Jul 08, 2024.
Unlock the methods to efficiently retrieve entity record IDs in Dynamics 365 Customer Engagement (D365 CE) CRM plugins. This guide explores step-by-step processes, best practices, and tips for developers to enhance their CRM customizations.
Understanding LINQ While Writing Your Own
Jul 03, 2024.
LINQ (Language-Integrated Query) in .NET offers a unified, declarative way to query diverse data sources like objects, databases, XML, and more. It simplifies data manipulation with methods like Where, Select, and GroupBy, supporting both query and method syntax.
Generic Repository with EF Core in .NET Core 8
Jul 03, 2024.
Observe the Entity Framework Core Generic Repository! The subject that will make some people uncomfortable. They are unwilling to discuss it at all. Others, on the other hand, adore it and become giddy at the mere mention of the generic repository pattern.
Mastering LINQ: TakeWhile and SkipWhile in C# .NET
Jul 01, 2024.
Explore LINQ's TakeWhile and SkipWhile methods in C#, which enhance data querying by conditionally including or excluding elements based on predicates. Learn how to use these powerful methods to process collections effectively, with detailed examples demonstrating their functionality and practical applications.
Entity Framework Performance Improvements with Code Examples
Jun 23, 2024.
Learn how to optimize Entity Framework performance with practical code examples. This guide covers essential techniques to enhance database efficiency, improve query performance, and eliminate bottlenecks.
Optimizing LINQ Queries in C# and .NET Core Web APIs
Jun 21, 2024.
LINQ in C# optimizes data querying with readable syntax, but inefficient use can impact .NET Core Web API performance. Strategies like early filtering and selective projections enhance efficiency. Deferred execution via IQueryable delays query execution, optimizing database interactions.
Lazy Loading (4): EntityFramework
Jun 21, 2024.
This article will discuss lazy loading in Entity Framework. This article series explores Lazy Loading, focusing on its application in various technologies like LINQ, HTML, JavaScript, Entity Framework, and Angular, providing insights and performance considerations.
LINQ vs PLINQ Method Syntax for Efficient C# .NET Data Processing
Jun 17, 2024.
LINQ (Language Integrated Query) and PLINQ (Parallel LINQ) are .NET frameworks for querying data. LINQ offers a declarative syntax for querying various data sources with single-threaded execution, while PLINQ extends LINQ by enabling parallel execution.
How To Connect Database in ASP.NET MVC using C# with ADO.NET
Jun 17, 2024.
Learn how to integrate SQL Server with your MVC application, configure connection strings, and perform CRUD operations. Ideal for developers seeking to enhance their data access techniques in ASP.NET.
Understanding CRUD Operation in Blazor
Jun 13, 2024.
Explore Blazor Server and WebAssembly models, integrate Entity Framework Core for data management, utilize Razor Components for UI design, and understand data binding in Blazor for seamless interaction.
Preventing XSS Attacks in ASP.NET Core MVC
Jun 12, 2024.
Build a secure ASP.NET Core MVC blog app with Entity Framework Core. Follow steps to create models, controllers, views, and implement client-side validation and sanitization to thwart XSS attacks. Access the GitHub project for code reference and ensure your application is protected against common vulnerabilities.
C# Comparison Fundamentals: Best Practices and Tips
Jun 11, 2024.
Comparison operations are a fundamental aspect of programming in C#. Whether you're comparing primitive types, strings, or objects, or handling null values, understanding the nuances of comparison can enhance both the performance and readability of your code.
Interface In TypeScript / Complex Types In TypeScript
Jun 09, 2024.
In TypeScript, using interfaces helps define complex types, providing clarity and preventing runtime issues. Unlike JavaScript's var/let, interfaces explicitly outline object properties. This approach mirrors server-side coding practices, like in C#, ensuring adherence to coding standards and enhancing type safety.
Understanding Single, SingleOrDefault, First, and FirstOrDefault in LINQ .NET C#
Jun 07, 2024.
LINQ (Language Integrated Query) provides powerful querying capabilities in C# to manipulate data collections. Among its arsenal of operators, Single, SingleOrDefault, First, and FirstOrDefault are frequently used to retrieve elements from sequences.
Mastering ASP.NET Core Identity in ASP.NET Core MVC
Jun 06, 2024.
ASP.NET Core Identity is a comprehensive membership system for adding login functionality to your ASP.NET Core applications. It provides a robust framework for managing users, passwords, roles, claims, tokens, email confirmation, and more.
Understanding Durable Functions in Azure: A Comprehensive Guide
Jun 02, 2024.
Explore the comprehensive guide to understanding Durable Functions in Azure. This guide delves into the concepts of serverless computing, function orchestration, and workflow automation using Azure Durable Functions.
LINQ Query Syntax vs Method Syntax in Entity Framework
May 29, 2024.
Choosing between LINQ Query Syntax and Method Syntax in Entity Framework depends on various factors. Query Syntax often resembles SQL, making it more intuitive for those with SQL background, while Method Syntax offers more flexibility with lambda expressions and method chaining.
Lazy Loading (2): HTML
May 29, 2024.
This series explores Lazy Loading within the LINQ category, focusing on dynamically loading images in HTML to enhance page load times, featuring code examples and demos for practical application.
Eager Loading and Lazy Loading in Entity Framework
May 28, 2024.
Entity Framework (EF) is a popular Object-Relational Mapping (ORM) framework for .NET. Understanding these concepts is crucial for improving the performance and efficiency of your applications.
Multiple OrderBy Operations in Entity Framework
May 27, 2024.
Entity Framework (EF) is a powerful ORM (Object-Relational Mapper) in .NET that allows developers to work with databases using .NET objects. In EF, this can be achieved using OrderBy, ThenBy, OrderByDescending, and ThenByDescending methods in LINQ queries.
Count vs. Any in Entity Framework for Efficient Querying in .NET
May 24, 2024.
Entity Framework (EF) is a powerful Object-Relational Mapper (ORM) for .NET, allowing developers to interact with databases using .NET objects. When working with EF, it's crucial to write efficient queries to ensure optimal performance.
Entity and Entity Relationships in DBMS
May 21, 2024.
An Entity-Relationship (ER) model visually represents data and relationships in a business domain, aiding database design. It simplifies understanding of complex databases and enhances communication between users and designers.
Difference between ADO.NET, ORM and Dapper
May 20, 2024.
This article explores ADO.NET, ORM, and Dapper in the .NET ecosystem, detailing their history, evolution, and best practices and providing C# code examples for effective data access management.
Data Pagination with Extension Methods in C#
May 20, 2024.
Pagination is a common technique used to manage and display data in chunks. This article discusses implementing pagination in C# using extension methods, which allow adding new functionality to existing types without modifying their source code, making data handling clean and reusable.
Dotnet Core, EF Core Store Procedure With Multiple Results
May 20, 2024.
Entity Framework Core coupled with stored procedures for SQL database data retrieval encounters a constraint: consistent return of all columns required for DbQuery<T> properties. This alternative approach offers solutions.
Dynamic Mapping Database result to Entity T
May 20, 2024.
This article provides logic for Mapping the SQL Result to C# Class. This code snippet demonstrates the dynamic mapping of SQL result columns to C# properties, converting SNAKE_CASE SQL column names to PascalCase C# properties using MapToList for DbDataReader to object mapping.
Programming in Practice - Structural Data
May 19, 2024.
In object-oriented programming, the basic way to create structural data is to define custom types and interconnect them using references. Let's analyze this case using sample code in the context of intentionally programmed relationships between items.
Tips for Improving Performance in Entity Framework
May 15, 2024.
Optimizing Entity Framework performance, particularly in EF Core, is crucial for efficient data access. These strategies, like eager loading and compiled queries, enhance responsiveness and reduce overhead.
Deciding the Right Data Reading Architecture in .NET
May 11, 2024.
In the dynamic realm of .NET development, choosing the right data reading architecture is paramount for application performance, scalability, and maintainability. Let's delve into practical examples of ADO.NET, Entity Framework, Dapper, and GraphQL to grasp their strengths and weaknesses.
Building CRUD Operations in .NET Core 8 with MongoDB
May 09, 2024.
Learn to create CRUD operations in .NET Core 8 Minimal API with MongoDB via Entity Framework Core. Build RESTful endpoints for seamless data interaction, leveraging ASP.NET Core's capabilities for efficient development and MongoDB's flexibility for NoSQL data storage.
Unlocking Performance: Exploring PLINQ in .NET C#
May 08, 2024.
In today's computing landscape, where multi-core processors are ubiquitous, optimizing the performance of your applications often involves leveraging parallelism. One powerful tool in the .NET developer's arsenal for achieving parallelism is PLINQ - Parallel Language-Integrated Query.
Programming in Practice - LINQ Expression
May 06, 2024.
An impression can be made that: data is data, and it doesn't matter where it comes from provided it is reliable. The LINQ technology is presented to fetch the necessary data from any available source. After reading the full story forget about ChatGPT and MSDN in the context of LINQ to make your life easier.
Inject a DbContext Instance Into BackgroundService in .NET Core
May 05, 2024.
In this article, Learn how to inject and use a DbContext instance within a BackgroundService in .NET Core. Utilize dependency injection to access database operations from a background task, ensuring proper lifecycle management with scoped services.
Database Connectivity in Visual Studio
May 03, 2024.
Visual Studio facilitates robust database connectivity through technologies like ADO.NET and Entity Framework. Developers can seamlessly integrate with SQL Server, MySQL, Oracle, and more using connection strings and data source management tools.
Single, SingleOrDefault, First, and FirstOrDefault in Linq .NET C#
Apr 30, 2024.
LINQ's element operators like Single, SingleOrDefault, First, FirstOrDefault, Last, and LastOrDefault provide specific functionalities for retrieving elements from collections in C#. Here's how to use them effectively.
Real-Time Text Display in Power Apps
Apr 30, 2024.
Explore the seamless integration of real-time text input updates with Power Apps. Discover how effortlessly display text input changes dynamically in labels, enhancing user interaction and engagement. Follow a step-by-step guide to implement this feature, empowering your apps with responsive, interactive experiences.
Entity Framework Core: Features, Real-time Implementation, Best Practices
Apr 29, 2024.
Entity Framework Core (EF Core) stands as a powerful toolset for .NET developers, streamlining the interaction between applications and databases through object-relational mapping (ORM). Whether adopting a database-first or code-first approach, EF Core simplifies data access and manipulation.
Explain Lambda Functions in .NET C#
Apr 26, 2024.
In the realm of .NET programming, lambda functions represent a powerful and concise way to define anonymous methods or functions. In this article, we'll explore the fundamentals of lambda functions in .NET, understand their syntax and usage, and uncover their practical applications in real-world scenarios.
C# Programming: Language Fundamentals, OOP, Async, LINQ
Apr 25, 2024.
This guide provides a thorough exploration of the C# language, covering essential topics such as language fundamentals, object-oriented programming concepts, asynchronous programming, and Language Integrated Query (LINQ).
LINQ in C#: Knowing When to Use First() vs FirstOrDefault()
Apr 24, 2024.
LINQ, a cornerstone of C#, empowers developers to query data across various sources efficiently. This guide delves into the nuanced differences between First() and FirstOrDefault(), aiding in crafting resilient and optimized code.
Pagination in a .NET with EF Core
Apr 15, 2024.
Pagination allows you to retrieve a large number of records split into pages instead of returning all the results at once. In this article, I present how to implement OffSet and Keyset pagination in a .NET 8 Web API using Entity Framework Core.
New LINQ Methods in .NET 9 Preview
Apr 14, 2024.
While the release of .NET 9 is planned for November 2024, the preview version is already available. One of the new .NET 9 features is the new LINQ methods: CountBy, AggregateBy, and Index. In this article, I present how to use these methods.
Soft Delete in Entity Framework Core
Apr 08, 2024.
Soft delete in Entity Framework Core allows for logically marking records as deleted without physically removing them from the database. This technique involves setting a flag, often "IsDeleted," to true instead of deleting the record.
Rename the "Related" entities in Dynamics 365
Apr 06, 2024.
Rename the "Related connections" entity to "Account-Connections" in CRM, follow steps Login, navigate to Advanced settings, open solution, access Account entity forms, edit "Connections" label, save, publish. Verify the change in an account record.
Functional programming in C# - Introduction
Apr 02, 2024.
Lets learn the concept of functional programming, its usage and why functional programming is important
What is Language Integrated Query in C#?
Mar 29, 2024.
Know about LINQ (Language Integrated Query) in C# and their benefits. In this article, we have explained LINQ with an example.
Activate & Deactivate Account Record in Dynamic 365 with PowerShell
Mar 28, 2024.
InteractiveMode prompts user for login in Dynamics CRM, storing connection in $conn. BypassPluginExecution set to true avoids plugin execution.Set-CrmRecordState modifies record state in CRM using specified entity, ID, and state/status codes.
Enable Entities for Service-Level Agreements in Dynamics 365
Mar 27, 2024.
Enable entities for service-level agreements in Dynamic 365. Enable service-level agreements (SLAs) for entities in Power Apps or Dynamics 365 Customer Engagement (on-premises) by following these steps.
Seamless Database Integration with C#
Mar 26, 2024.
Efficiently integrating databases with C# applications is crucial for managing data seamlessly. Explore various approaches like ADO.NET, Entity Framework Core, and Dapper along with best practices for successful integration.
Soft Deletion in Entity Framework Core
Mar 23, 2024.
In this article, we will delve into the concept of soft deletion and illustrate how to implement it effectively with EF Core.
Exploring .NET 6's MinBy() and MaxBy() Extension Methods
Mar 22, 2024.
In this article, I will demonstrate the exciting new additions to LINQ extension methods introduced in.NET 6: MinBy() and MaxBy(). Let's explore how these powerful methods simplify code, providing efficient solutions for selecting extreme values within a generic sequence.
Update a Contact record in Dynamics 365 (D365) using PowerShell
Mar 21, 2024.
Update a Contact record in Dynamics 365 (D365) using PowerShell involves modifying existing contact information within the D365 environment programmatically. This process utilizes PowerShell scripting to interact with the Dynamics 365 API.
Creating Contact Record in D365 with PowerShell Script & Image Attribute
Mar 15, 2024.
Learn to automate Dynamics 365 contact record creation via PowerShell. This script includes adding image attributes, streamlining CRM data management. Utilize Microsoft's Xrm.Data.PowerShell module for efficient and seamless integration, enhancing your CRM automation capabilities.
Create Virtual Entity in D365 CRM
Mar 14, 2024.
Creating virtual entities in D365 CRM allows the integration of external data sources seamlessly into your CRM environment. It streamlines data access, enhancing insights and decision-making without extensive data replication, simplifying customization, and enriching CRM capabilities.
A Comprehensive Guide to Entity Framework Core in .NET 8
Mar 10, 2024.
Explore the comprehensive guide to Entity Framework Core in .NET 8, enriched with the latest features of C# 10. Authored by Ziggy Rafiq, this detailed overview covers everything from basic concepts to advanced techniques, offering insights into database interaction, performance optimisation, testing strategies, and best practices for .NET developers
Misconceptions About the Four LINQ methods
Mar 09, 2024.
Misconceptions about the four LINQ methods. Single(), SingleOrDefault(), First(), and FirstOrDefault(). This article addresses misconceptions surrounding four LINQ methods—Single(), SingleOrDefault(), First(), and FirstOrDefault(). Clarifying differences and potential pitfalls helps prevent null references and invalid operator exceptions in code.
Leveraging Compiled Queries for Enhanced Performance in LINQ
Mar 09, 2024.
Compiled queries in LINQ allow developers to pre-compile LINQ queries into executable delegates, reducing the overhead of query compilation and optimization. By caching the compiled query execution plan, compiled queries improve the performance of frequently executed or complex queries in C# applications.
What is New in .NET 9
Mar 04, 2024.
.NET 9, succeeding .NET 8, places particular emphasis on cloud-native applications and enhancing performance. It will receive standard-term support (STS) for 18 months.
Trigger a Plugin When Contact Removed form Marketing List Entity
Mar 04, 2024.
This content provides guidance on removing a contact from a marketing list in Dynamics 365 using a plugin. It outlines the steps to create, register, implement the logic, deploy, and test the plugin. Additionally, it includes the necessary plugin code and a unit test code snippet.
Create Auto-Numbering in Microsoft Dynamics 365 Entities
Feb 29, 2024.
Automate entity numbering effortlessly in Microsoft Dynamics 365 with no code required. Utilize system settings, business rules, and workflow automation to generate unique serial numbers for records, enhancing data management and streamlining processes.
Why we should learn C#?
Feb 26, 2024.
This article explores the reasons behind choosing C# over other languages, delving into its evolution, key features like object orientation, lambda expressions, LINQ, generics, and its adaptability for modern development needs.
Creating Email Template for Custom Entities in Dynamics 365 CE
Feb 24, 2024.
This article is about using email template for custom entity in Dynamics 365
Establish a Routing Rule for Customer Service Entity Records
Feb 20, 2024.
Routing rules in Customer Service streamline the process of directing cases to appropriate agents or queues automatically, eliminating the need for manual intervention. These rules also facilitate the routing of escalated cases to specific queues.
Enable Audit History for an Entity in CRM
Feb 15, 2024.
Enable audit history in CRM to track entity changes. Enhance data security, compliance, and integrity by monitoring modifications. Configure settings to log and report on user actions for improved governance.
Duplicate Detection within Dynamics 365 using PowerApps
Feb 09, 2024.
Duplicate detection within Dynamics 365 using PowerApps ensures data integrity by identifying and managing duplicate records. Leverage PowerApps' capabilities to validate and match records, establish entity relationships, and automate processes.
Create New Records in Account Entity using PowerShell Script in D365
Feb 06, 2024.
Install the PowerShell module, set the execution policy to RemoteSigned, configure TLS 1.2, connect to Dynamics 365 CRM using the provided credentials, and create new records in the Account entity.
Develop D365 Contact Creation Plugin with Unit Test Case
Jan 24, 2024.
Create a Plugin when a new Contact is created in D365 and Update the same Contact in PreOperation with some data. This code snippet showcases the setup of an Entity Framework plugin in C#. It covers essential lines for retrieving services, context, and executing operations. Also, a unit test example is provided.
Optimizing Performance in C# Entity Framework
Jan 24, 2024.
Optimize the performance of your C# Entity Framework application with these strategic best practices. From lazy loading and eager loading to caching and database tuning, ensure efficient data access.
Create a Minimal API with ASP.NET Core and Entity Framework
Jan 22, 2024.
This article explains the concept of minimal APIs, their advantages, and steps to implement CRUD operations. Explore the flexibility and simplicity of minimal APIs for building efficient HTTP APIs. The article covers database setup, model creation, repository implementation, and dynamic registration of APIs during runtime.
Lazy Loading In ASP.NET Core 7 Web API
Jan 22, 2024.
ASP.NET Core 7 Web API. Lazy loading is a technique where related data is only loaded from the database when it is explicitly requested. In Entity Framework Core, lazy loading can be achieved by marking navigation properties as virtual.
Eager Loading In ASP.NET Core Web API Complete Example
Jan 22, 2024.
In ASP.NET Core, eager loading is a technique used to load related data along with the main entity in a single database query. This helps to optimize performance by reducing the number of database calls. Let's implement an example of eager loading in an ASP.NET Core Web API using Entity Framework Core.
Working with Noda Time, .Net and Entity Framework (EF core)
Jan 15, 2024.
Working with NodaTime with EF core which is a alternative DateTime framework for .net applications.
Side Pane with Entity Form in Dynamics 365
Jan 04, 2024.
In Dynamics 365, the "Side Pane" typically refers to a section or area within an entity form where related or additional information is displayed. This section might contain related records, quick views, I frames, or web resources.
Entity Relationship Diagrams in Microsoft Dynamics with XrmToolBox
Jan 04, 2024.
Delve into the realm of data architecture within Microsoft Dynamics 365 as I guide you through the process of crafting detailed Entity Relationship Diagrams (ERDs) using the versatile XrmToolBox. This comprehensive article demystifies the complexities of visualizing and understanding data relationships.
Clean Architecture
Jan 02, 2024.
Embark on a learning journey into the world of Clean Architecture, a transformative paradigm in software development. Uncover its core principles, such as separation of concerns and testability, with real-life examples. Elevate your development skills.
Eager Loading and Lazy Loading in .NET Core
Dec 29, 2023.
This article delineates two fundamental data retrieval strategies in .NET Core: Eager Loading and Lazy Loading. Eager loading is a technique used to retrieve related or associated data in a single query from a database.
10 Common Entity Framework interview questions and answers.
Dec 24, 2023.
here is some common Entity Framework interview questions.
Implement Entity Framework A Code First Approach in .Net 8 API
Dec 18, 2023.
In this article, we are going to discuss. How to implement Entity Framework a code first approach in .Net 8 API. In this approach, model classes and their relation are created first using the ORM designer, and the physical database will be generated using this model. The Model First approach means we create a diagram of the entity and relation that will be converted automatically into a code model.
Multi-Tenancy with Separate Databases Approach in .NET Core
Dec 14, 2023.
In this article, we will learn how to implement a separate database approach of multi-tenancy in the .Net Core application and how to provide a dynamic connection string to DbContext
Retrieving Audit Data for a Specific Entity in D365 CE Using C#
Dec 08, 2023.
This article is about getting audit entity data for a particular entity. This blog guides Dynamics 365 CE users on leveraging C# code to retrieve audit data, ensuring compliance and transparency. Learn to fetch records based on specific operations for insightful analytics.
Synergy of .NET, DevOps, and Entity Framework Core
Dec 06, 2023.
Explore the synergy of DevOps, .NET, and Entity Framework Core for streamlined and efficient software development. Learn to integrate CI/CD pipelines, version control, and automated testing for high-quality applications.
Sorting Arrays in C#
Nov 24, 2023.
This article guides us through sorting arrays in C# using the Array.Sort() method and LINQ queries. It covers both ascending and descending orders, providing code snippets for clarity.
Implementing State Design Pattern in ASP.NET Core Web API with 3-Tier Architecture
Nov 10, 2023.
In this ASP.NET Core Web API project utilizing a 3-Tier Architecture with the State Design Pattern, we've created a News management system that encapsulates the state of news items, allowing for a clear and structured way to handle state transitions. The architecture consists of three distinct layers: Presentation, Business Logic, and Data Access. The Business Logic layer is where the State Design Pattern is applied, with different states such as Draft, Published, and Archived, each represented by concrete state classes. The NewsService class is responsible for managing these states and their transitions. Controllers in the Presentation layer handle HTTP requests and delegate the state-related operations to the NewsService, enabling CRUD functionality for news items. By setting the appropriate state and invoking state-specific methods, such as Publish and Archive, we control the state transitions. While this example focuses on the pattern's core implementation, in a real-world scenario, you would integrate a data access layer to persist and retrieve news items from a database, making it a robust and maintainable system.
Difference Between Concurrency and Parallelism in C#
Nov 09, 2023.
The article you provided gives a comprehensive overview of the concepts of concurrency and parallelism and their relevance in C# programming. It highlights the distinctions between the two concepts and provides clear examples and use cases for each. The discussion of best practices and considerations for managing concurrency and parallelism effectively is a valuable addition, as it helps developers avoid common pitfalls and make informed decisions when implementing these concepts in their applications.
Building a Web API Structure with Database-First Approach (Using EDMX)
Oct 23, 2023.
In this article, you will learn about Web API Structure With Database First Approch. This article provides a step-by-step guide on creating a web API structure with a database-first approach using EDMX in an ASP.NET web application. The steps include project creation, data model setup, API controller creation, and configuration for JSON output.
Building Scalable ASP.NET Core Web API with Onion Architecture and Abstract Factory Design Pattern
Oct 06, 2023.
This implementation serves as a foundation for building robust, modular, and scalable ASP.NET Core Web APIs. As the project evolves, additional features, security measures, and optimizations can be incorporated while adhering to the principles of the chosen architectural style.
Building a Robust ASP.NET Core Web API with Singleton Design Pattern and Three-Tier Architecture
Oct 04, 2023.
This example provides a basic structure for a Three-Tier Architecture in an ASP.NET Core Web API, implementing a Singleton Design Pattern for the Data Access Layer. Remember to adjust the code based on your specific requirements and consider using dependency injection for better testability and maintainability.
CRUD Operations in ASP.NET Core with 3-Tier Harmony and Command Builder Design Pattern
Oct 04, 2023.
Command Builder Design Pattern in an ASP.NET Core Web API using a Three-Tier Architecture for CRUD operations. For the sake of this example, let's assume you have a model named CSharpCornerArticle.
Understanding LINQ in C#: Query Syntax and Method Syntax
Oct 03, 2023.
This article is an informative and in-depth exploration of LINQ (Language Integrated Query) within the context of C#, a widely used programming language in the software development industry. The guide delves into both the query syntax and method syntax aspects of LINQ, providing readers with a thorough understanding of how to effectively use LINQ to query and manipulate data in C# applications.
Integrating Dynamics 365 CRM with .NET Using Entity Framework Core
Oct 01, 2023.
In this article, we will explore how to seamlessly integrate Dynamics 365 CRM with .NET using Entity Framework Core, backed up with practical examples.
ASP.NET Core Web API for CRUD Operations with MySQL
Sep 25, 2023.
Creating a CRUD (Create, Read, Update, Delete) API in ASP.NET Core with a MySQL database is a common scenario in web development. In this article, we'll walk through building a complete ASP.NET Core Web API with a real-world use case. We'll create a model called CSharpCornerArticle and implement CRUD operations for it using Entity Framework Core with MySQL.
Event Trigger Power BI Entities Refresh via Azure SQL Database
Sep 23, 2023.
Event Trigger Power BI Entities Refresh via Azure SQL Database
Azure Function Data Migration with ASP.NET Core Web API
Sep 15, 2023.
Creating an Azure Function for data migration from one database to another using an ASP.NET Core Web API involves several steps. In this example, I'll provide a high-level overview and code snippets for each step. Please note that this is a simplified example, and you should adapt it to your specific needs.
Understanding LINQ in .NET
Sep 11, 2023.
LINQ, or Language Integrated Query, is a powerful feature in the .NET framework that simplifies data querying and manipulation in C# and VB.NET applications. It provides a uniform and SQL-like syntax for querying data from various sources, including in-memory collections, databases, XML, and more.
Call Web API in .NET and Filter Data using Bootstrap Filters with Less Code
Aug 27, 2023.
We can filter records for each columns in table with single textbox or search. With less code and few mins, We can implement that feature to work on complex data.
Exploring the Diverse Flavors of LINQ with Examples
Aug 22, 2023.
LINQ is a powerful feature in modern programming languages like C# that allows developers to perform queries on different types of data sources using a consistent syntax. With LINQ, you can query and manipulate data without worrying about the underlying data source, whether it's an in-memory collection, a database, or XML
Using the OrderBy and OrderByDescending Operator in LINQ
Aug 08, 2023.
Using the OrderBy and OrderByDescending Operator in LINQ: Sorting Collections
About linq-to-entities
NA
OUR TRAINING