We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is my code:
public VORace Create(VORace x) { x.RaceId = null; int id = _queryFactory .Query("Race") .InsertGetId<int>(x); x.RaceId = id; return x; }
this is my model:
public class VORace { public int? RaceId { get; set; } public string RaceName { get; set; } public int MediumWeight { get; set; } }
this is my table:
CREATE TABLE Race ( RaceId INTEGER NOT NULL, RaceName NVARCHAR (64), MediumWeight INTEGER, PRIMARY KEY ( RaceId ) );
The insert operation works and the row id has incremented, but the returned id is always 0. Thank you in advance.
The text was updated successfully, but these errors were encountered:
@frenkhub @generik0 I can't reproduce this, and the SQLite execution tests are passing as expected, I am using the Microsoft.Data.Sqlite package
Microsoft.Data.Sqlite
more details here https://docs.microsoft.com/en-us/dotnet/standard/data/sqlite/?tabs=netcore-cli
Can you confirm please?
Sorry, something went wrong.
It looks like there hasn't been a reply in 30 days, so I'm closing this issue.
No branches or pull requests
This is my code:
this is my model:
this is my table:
The insert operation works and the row id has incremented, but the returned id is always 0. Thank you in advance.
The text was updated successfully, but these errors were encountered: