-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Support generating multiple files #427
Support generating multiple files #427
Comments
This will be a great feature, because clean architecture enforce you to separate external service implementation in infrastructure layer and their models in domain layer. similiar approach is used by ef core scaffold command, maybe we can take this as an example for our approach. Scaffold-DbContext "Data Source=.;User ID=SA;Password=Passw0rd;Database=Sample;Connect Timeout=30;Trust Server Certificate=True;Application Intent=ReadWrite;Multi Subnet Failover=False" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Entities -Force -NoOnConfiguring -Context SampleDbContext -ContextDir ..\Sample.Infrastructure\Persistence\ -ContextNamespace Sample.Infrastructure.Persistence -Project Sample.Domain
I think we could use For now, |
@berkslv Sorry for the late reply, it took longer than expected to get out of vacation mode 😄
I can see the value in splitting the contracts and interfaces into multiple files in multiple locations on disk across multiple .NET projects when the system with these files also "owns" the contracts. I wouldn't care too much about splitting files or types across multiple .NET projects when the system that generates them uses another system's OpenAPI specifications as that would be the equivalent of adding a package reference to that other system's client library (like an SDK) That said, it's not technically hard to implement, so I'll think about it. I have already made quite some progress with splitting the generated code into multiple files. Once I get those changes in maybe I'll re-visit the idea of having options to specify the output file/location for each generated file |
Feature description
Add support for generating multiple files.
For example, separate files for the refit interfaces, contracts, and dependency injection setup.
Discussed in #385
The text was updated successfully, but these errors were encountered: