-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
I ran the following :
dotnet saturn gen Movie Movies Id:int Title:string ReleaseDate:DateTime Genre:string Price:decimal Rating:string
When building, there were many errors like the following:
error FS0039: The type 'Movie' does not define the field, constructor or member 'id'.
The generated code which led to the errors:
It looks like Saturn.Cli assumes the existence of a field id. Note that in the above case, the field is Id.
Seems like there are a few ways to resolve this. Saturn.Cli could do one of the following (among other possible suggestions):
- Refuse to generate code if
idis not provided (simplest) - Honor a field named
Idinstead ofid - Allow the user to specify an id field that is named arbitrarily
Metadata
Metadata
Assignees
Labels
No labels
