{"id":19519170,"url":"https://github.com/rahulmule/azurefunction-efcore-demo","last_synced_at":"2026-06-23T04:31:01.289Z","repository":{"id":215630324,"uuid":"739393082","full_name":"RahulMule/AzureFunction-EFCore-Demo","owner":"RahulMule","description":"This Azure Functions project demonstrates how to use Entity Framework Core to perform CRUD operations in a serverless environment. The project includes functions to retrieve, add, update, and delete stock information using an HTTP-triggered approach.","archived":false,"fork":false,"pushed_at":"2024-02-27T15:07:22.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-09T15:22:48.550Z","etag":null,"topics":["azure-functions","dotnet-6","entity-framework-core"],"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}},"created_at":"2024-01-05T13:07:30.000Z","updated_at":"2025-04-23T19:57:35.000Z","dependencies_parsed_at":"2024-01-05T15:30:59.390Z","dependency_job_id":"6bcf3be8-7be4-4420-b5eb-97bbfd6380cf","html_url":"https://github.com/RahulMule/AzureFunction-EFCore-Demo","commit_stats":null,"previous_names":["rahulmule/azurefunction_efcore_demo","rahulmule/azurefunction-efcore-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RahulMule/AzureFunction-EFCore-Demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulMule%2FAzureFunction-EFCore-Demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulMule%2FAzureFunction-EFCore-Demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulMule%2FAzureFunction-EFCore-Demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulMule%2FAzureFunction-EFCore-Demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RahulMule","download_url":"https://codeload.github.com/RahulMule/AzureFunction-EFCore-Demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulMule%2FAzureFunction-EFCore-Demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34675970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["azure-functions","dotnet-6","entity-framework-core"],"created_at":"2024-11-11T00:16:39.613Z","updated_at":"2026-06-23T04:31:01.270Z","avatar_url":"https://github.com/RahulMule.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Function EFCore Demo\n\nThis Azure Functions project demonstrates how to use Entity Framework Core to perform CRUD operations in a serverless environment. The project includes functions to retrieve, add, update, and delete stock information using an HTTP-triggered approach.\n\n## Prerequisites\n\n- **Azure Subscription**: Ensure you have an active Azure subscription to deploy and run the Azure Functions.\n\n## Setup Instructions\n\n1. **Database Connection**: Update the `ShareDataContext` class in the `DataContext` folder with your database connection string.\n\n    ```csharp\n    // In ShareDataContext.cs\n    optionsBuilder.UseSqlServer(\"your_connection_string_here\");\n    ```\n\n2. **Entity Framework Migrations**: If the database does not exist, you may need to apply Entity Framework migrations to create the required tables. Open a command prompt in the project directory and run the following commands:\n\n    ```bash\n    dotnet ef migrations add InitialCreate\n    dotnet ef database update\n    ```\n\n3. **Azure Functions Configuration**: Make sure to configure the Azure Functions settings, including the database connection string, in the Azure Portal or using local settings for local development.\n\n## Functions Overview\n\n### 1. GetAllPortfolio\n\n- **Endpoint**: `GET` or `POST` request to the function URL.\n- **Description**: Retrieves all stock information including associated transactions from the database.\n\n### 2. AddShare\n\n- **Endpoint**: `POST` request to the function URL.\n- **Description**: Adds a new stock to the database. Provide stock details in the request body as JSON.\n\n### 3. Update\n\n- **Endpoint**: `POST` request to the function URL.\n- **Description**: Updates an existing stock in the database. Provide updated stock details in the request body as JSON.\n\n### 4. Delete\n\n- **Endpoint**: `POST` request to the function URL.\n- **Description**: Deletes an existing stock from the database. Provide the stock ID in the request body as JSON.\n\n\n## Usage\n\nLocal Development:\n\nRun the project locally using Visual Studio or the func CLI.\nTest the functions using tools like Postman or cURL.\n\n## Deployment to Azure:\n\nPublish the function app to your Azure subscription.\nEnsure the required configuration settings are set in the Azure Portal.\n\n## Known Issues\n\nNone reported.\n\n## Contributions\n\nContributions are welcome! Please create an issue or pull request for any improvements or bug fixes.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulmule%2Fazurefunction-efcore-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahulmule%2Fazurefunction-efcore-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulmule%2Fazurefunction-efcore-demo/lists"}