Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeffhollan/functions-csharp-entityframeworkcore
C# Function that uses dependency injection and entity framework core with Azure SQL
https://github.com/jeffhollan/functions-csharp-entityframeworkcore
Last synced: 3 months ago
JSON representation
C# Function that uses dependency injection and entity framework core with Azure SQL
- Host: GitHub
- URL: https://github.com/jeffhollan/functions-csharp-entityframeworkcore
- Owner: jeffhollan
- Created: 2019-05-26T05:05:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-20T17:12:54.000Z (almost 4 years ago)
- Last Synced: 2024-10-13T11:21:57.203Z (4 months ago)
- Language: C#
- Size: 9.77 KB
- Stars: 29
- Watchers: 0
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Interested in .NET 5?
Link to a sample using Entity Framework 5 in Azure Functions: https://github.com/jeffhollan/functions-net5-entityframework
# .NET Core Entity Framework and functions
C# Function that uses dependency injection and entity framework core with Azure SQL. A few things of note:
I want to use design-first migration, so I created a `IDesignTimeDbContextFactory` for the tooling to generate the right `DbContext`.
I also had to add a post-build step to the `.csproj` file to make sure the `.dll` for the project is where the entity framework tooling expected:
```xml
```