I just try to add migrations, found error : Unable to create an object of type 'StoreDbContext'. For the different patterns supported at design time, see go.microsoft.com/fwlink/?linkid=85...
In this case, the abstractions implemented in the application already resolve a "save" of a new entity (root aggregate) for you. Just need to add a new field in the respective mutation class.
For that, and based on "GraphQL for .NET", you will need an InputObjectGraphType<T> for the input, and an ObjectGraphType<T> for output.
I just try to add migrations, found error : Unable to create an object of type 'StoreDbContext'. For the different patterns supported at design time, see go.microsoft.com/fwlink/?linkid=85...
Hello AZMIMANSUR!
This project has the database context in a different layer than the entry point.
To perform migrations, in this case, you must indicate both projects in the command:
Thanks, Antonio
Working now.
Hi Antonio,
Question again.
I created a service below to update, I'm still confused about how to mapper changed between
clientModel
withclient
?Hi AZMIMANSUR!
In this case, the abstractions implemented in the application already resolve a "save" of a new entity (root aggregate) for you. Just need to add a new field in the respective mutation class.
For that, and based on "GraphQL for .NET", you will need an
InputObjectGraphType<T>
for the input, and anObjectGraphType<T>
for output.Obs: Is necessary to create a new migration including the new table "Clients".