Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doggy8088/duotify.efcore.entitypartialgenerator
A supplemental tool for generating EFCore Entity Model class's [ModelMetadataType] partial class. (a.k.a. Buddy Class).
https://github.com/doggy8088/duotify.efcore.entitypartialgenerator
Last synced: 11 days ago
JSON representation
A supplemental tool for generating EFCore Entity Model class's [ModelMetadataType] partial class. (a.k.a. Buddy Class).
- Host: GitHub
- URL: https://github.com/doggy8088/duotify.efcore.entitypartialgenerator
- Owner: doggy8088
- License: mit
- Created: 2020-12-16T15:06:43.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-24T04:12:46.000Z (over 2 years ago)
- Last Synced: 2024-10-01T22:39:22.037Z (about 1 month ago)
- Language: C#
- Homepage: https://www.nuget.org/packages/Duotify.EFCore.EntityPartialGenerator
- Size: 43 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Duotify.EFCore.EntityPartialGenerator
This .NET Global tool is a supplemental tool for generating EFCore Entity Model class's `ModelMetadataType` partial class. (a.k.a. Buddy Class).
## Installation
```sh
dotnet tool install -g Duotify.EFCore.EntityPartialGenerator
```## Usage
1. Usage information
```sh
efp
```> `efp` is stands for **Entity Framework Partial class generator**.
2. List all the DbContext class in the project
```sh
efp list
```3. Generating all the required "buddy class" for the entity model class.
```sh
efp generate -c ContosoUniversityContext -o Models
```> This command will build existing project first. Only buildable project can generate partial classes.
Show generating files
```sh
efp generate -c ContosoUniversityContext -o Models -v
```Overwrite existing partial class
```sh
efp generate -c ContosoUniversityContext -o Models -v -f
```## Build & Publish
1. Change `` and `` property in `*.csproj` file
2. Build & Pack & Publish
```sh
dotnet pack -c Release
dotnet nuget push bin\Release\Duotify.EFCore.EntityPartialGenerator.1.3.0.nupkg --api-key YourApiKeyFromNuGetOrg --source https://api.nuget.org/v3/index.json
```