You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I follow the steps in the how to start guide, however, use id:int instead of id:string:
dotnet new saturn
dotnet tool restore
dotnet saturn gen Book Books id:int title:string author:string
dotnet saturn migration
Router.fs : browserRouter
Add the following line
forward "/books" Books.Controller.resource
dotnet fake build
I get the following error when building:
error FS0001: The type 'int' does not have 'null' as a proper value
This is due to the following line in BooksModel.fs:
fun u -> if isNull u.id then Some ("id", "Id shouldn't be empty") else None
The text was updated successfully, but these errors were encountered:
If I follow the steps in the how to start guide, however, use
id:int
instead ofid:string
:I get the following error when building:
This is due to the following line in
BooksModel.fs
:The text was updated successfully, but these errors were encountered: