Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@picasso566 I was thinking that if the code gen feature is kept, it would be best as a dotnet tool (https://github.com/aspnet/DotNetTools/) #597

Closed
Quttia opened this issue Sep 26, 2020 · 2 comments

Comments

@Quttia
Copy link

Quttia commented Sep 26, 2020

@picasso566 I was thinking that if the code gen feature is kept, it would be best as a dotnet tool (https://github.com/aspnet/DotNetTools/)

Before the current netcore sdk release, a dotnet tool was installed to the local project. However, now it can also be global. This reminds a little of NPM - if you've ever used it.

As for the API maybe, and this is just me thinking out loud....

dotnet petapoco generate --connection-string "sdfsdfsdf" --out-location "\Project\Data\Models" --filter-out "%User%" --filter "%Ordre%" --template "Default"|"Single file"

dotnet petapoco generate -cs "sdfsdfsdf" -ol "\Project\Data\Models" -fo "%User%" -f "%Ordre%" -t "Default"|"Single file"

Minimum

dotnet petapoco generate -cs "sdfsdfsdf" -ol "\Project\Data\Models"

after the first call is made, a shorter path to re-running it (would involve saving previous options)

dotnet petapoco update

Originally posted by @pleb in #460 (comment)

@Quttia
Copy link
Author

Quttia commented Sep 26, 2020

@pleb hello, Does this feature carry out?

@pleb
Copy link
Member

pleb commented Oct 1, 2020

Give #368 a read.

The closes thing to this would be https://github.com/hippasus/PetaPoco.DBEntityGenerator

@Quttia Quttia closed this as completed Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants