{"id":19519202,"url":"https://github.com/rahulmule/dotnetwebapi-dapper-demo","last_synced_at":"2026-05-16T13:04:49.972Z","repository":{"id":215688632,"uuid":"739562778","full_name":"RahulMule/DotNetWebAPI-Dapper-Demo","owner":"RahulMule","description":"This is a simple .NET 6 Web API project that uses Dapper as the ORM (Object-Relational Mapping) to interact with a SQL Server database. The project includes basic CRUD (Create, Read, Update, Delete) operations for managing products.","archived":false,"fork":false,"pushed_at":"2024-01-05T22:00:31.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T00:15:31.224Z","etag":null,"topics":["dapper","dotnet-6","dotnetcore","dotnetwebapi","sql-server-database","web-api"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RahulMule.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-05T21:50:17.000Z","updated_at":"2024-04-16T18:35:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"68556dfd-f2d3-4efb-b798-af9d1709b315","html_url":"https://github.com/RahulMule/DotNetWebAPI-Dapper-Demo","commit_stats":null,"previous_names":["rahulmule/dotnetwebapi_dapperdemo","rahulmule/dotnetwebapi-dapper-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulMule%2FDotNetWebAPI-Dapper-Demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulMule%2FDotNetWebAPI-Dapper-Demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulMule%2FDotNetWebAPI-Dapper-Demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulMule%2FDotNetWebAPI-Dapper-Demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RahulMule","download_url":"https://codeload.github.com/RahulMule/DotNetWebAPI-Dapper-Demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240766606,"owners_count":19854119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dapper","dotnet-6","dotnetcore","dotnetwebapi","sql-server-database","web-api"],"created_at":"2024-11-11T00:16:49.131Z","updated_at":"2026-05-16T13:04:49.939Z","avatar_url":"https://github.com/RahulMule.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .NET Web API with Dapper Demo\n\nThis repository contains a .NET Web API project showcasing the use of Dapper as the Object-Relational Mapping (ORM) tool for interacting with a SQL Server database. The API manages products using CRUD operations.\n\n## Project Structure\n\nThe project structure follows a typical ASP.NET Web API pattern, and Dapper is used for data access.\n\n- **Controllers:**\n  - `ProductController`: Manages CRUD operations for products.\n\n- **Models:**\n  - `Product`: Represents a product entity.\n\n## API Endpoints\n\n### 1. Get All Products\n\n- **Endpoint:** `GET /api/Product`\n- **Description:** Retrieve a list of all products.\n- **Response:** Array of products.\n\n### 2. Add Product\n\n- **Endpoint:** `POST /api/Product`\n- **Description:** Add a new product.\n- **Request Body:** JSON representing the new product.\n- **Response:** OK with the added product details.\n\n### 3. Remove Product\n\n- **Endpoint:** `DELETE /api/Product`\n- **Description:** Remove a product by ID.\n- **Request Body:** JSON representing the product to be removed.\n- **Response:** OK with a message indicating that the product is deleted.\n\n## How to Run\n\n1. Clone this repository.\n2. Set up a SQL Server or another compatible database and update the connection string in `appsettings.json`.\n3. Run the application using Visual Studio or `dotnet run`.\n4. Test the API using a tool like [Postman](https://www.postman.com/) or [Swagger](https://swagger.io/).\n\n\n## Dependencies\n\n- ASP.NET Core\n- Dapper\n- Microsoft.Extensions.Configuration\n- Microsoft.Data.SqlClient\n\nFeel free to customize and extend this project based on your specific requirements. For any issues or improvements, please create an issue or submit a pull request.\n\nHappy coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulmule%2Fdotnetwebapi-dapper-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahulmule%2Fdotnetwebapi-dapper-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulmule%2Fdotnetwebapi-dapper-demo/lists"}