https://github.com/amrmohamed001/dotnet-dataaccess
This repository is dedicated to exploring various data access techniques in ASP.NET applications. It serves as a learning resource to understand different approaches for interacting with databases in .NET development.
https://github.com/amrmohamed001/dotnet-dataaccess
adonet asp-net-core codefirst csharp dapper-orm databasefirst dotnet efcore migration reverse-engineering
Last synced: 6 months ago
JSON representation
This repository is dedicated to exploring various data access techniques in ASP.NET applications. It serves as a learning resource to understand different approaches for interacting with databases in .NET development.
- Host: GitHub
- URL: https://github.com/amrmohamed001/dotnet-dataaccess
- Owner: AmrMohamed001
- Created: 2024-11-24T11:43:55.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-01T14:06:07.000Z (about 1 year ago)
- Last Synced: 2025-02-25T03:17:28.715Z (11 months ago)
- Topics: adonet, asp-net-core, codefirst, csharp, dapper-orm, databasefirst, dotnet, efcore, migration, reverse-engineering
- Language: C#
- Homepage:
- Size: 16.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Data Access in ASP.NET
This repository is dedicated to exploring various data access techniques in ASP.NET applications. It serves as a learning resource to understand different approaches for interacting with databases in .NET development.
## Key Topics Covered
### 1. **ADO.NET**
- Working with raw database connections, commands, and readers.
- Managing connections and transactions manually for fine-grained control.
### 2. **Dapper**
- Lightweight ORM for executing raw SQL queries.
- Mapping results directly to objects for streamlined data access.
### 3. **Entity Framework Core**
- Full-fledged ORM for building data access layers.
- Two main approaches:
- **Code-First with Migrations:** Define your database schema using C# classes and evolve it with migrations.
- **Database-First with Reverse Engineering:** Scaffold the database schema into C# classes using EF Core tools.
## Purpose
The primary purpose of this repository is educational. It demonstrates:
- Different ways to interact with databases in ASP.NET.
- How to use ADO.NET, Dapper, and Entity Framework Core effectively.
- Practical examples of both **Code-First** and **Database-First** workflows.