https://github.com/godeltech/godeltech.microservices.data.entityframeworkcore
Microservice initializer for GodelTech.Data.EntityFrameworkCore
https://github.com/godeltech/godeltech.microservices.data.entityframeworkcore
Last synced: 25 days ago
JSON representation
Microservice initializer for GodelTech.Data.EntityFrameworkCore
- Host: GitHub
- URL: https://github.com/godeltech/godeltech.microservices.data.entityframeworkcore
- Owner: GodelTech
- License: mit
- Created: 2022-07-15T12:09:57.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-23T11:16:58.000Z (5 months ago)
- Last Synced: 2025-04-28T19:05:42.650Z (27 days ago)
- Language: C#
- Size: 107 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GodelTech.Microservices.Data.EntityFrameworkCore
Microservice initializer for [GodelTech.Data.EntityFrameworkCore](https://github.com/GodelTech/GodelTech.Data.EntityFrameworkCore)For Repository with Unit of Work use:
```c#
yield return new DataInitializer(
Configuration,
_hostingEnvironment,
options => Configuration.Bind("DataInitializerOptions", options)
)
.WithRepository, Repository, BankEntity, Guid>()
.WithRepository();
```For simple Repository (repository without Unit of Work) use:
```c#
yield return new SimpleDataInitializer(
Configuration,
_hostingEnvironment,
options => Configuration.Bind("DataInitializerOptions", options)
)
.WithRepository();
```