AutoIncrement not Working with Current Build
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the issue with the MyQueue model and database.CreateTable() on Android and iOS. Inspect whether the created table enforces the PrimaryKey and AutoIncrement attributes, then verify completion by confirming inserted rows receive valid generated IDs and reject invalid primary-key behavior.
Written by the indexing model from the issue text.
Description
I have a model declared as such:
public class MyQueue
{
[PrimaryKey, AutoIncrement]
public int Id { get; set; }
public string Eval { get; set; }
public bool Delivered { get; set; }
}
I am using database.CreateTable(); to create the table and yet the AutoIncrement and PrimaryKey flags are being completely ignored on Android and iOS in my XF app. I can insert as many items in this table as I want with null Id or Id of 0 (neither of which should be okay).
- Dominant language
- C#
- Stars
- 4.5k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from praeclarum/sqlite-net
-
Feature Up for Grabs
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
praeclarum/sqlite-net#609 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
praeclarum/sqlite-net#1308 · 6 comments · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
praeclarum/sqlite-net#1307 · 23 comments · 7 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
praeclarum/sqlite-net#1300 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
praeclarum/sqlite-net#1299 · 6 comments ·
All issues in praeclarum/sqlite-net
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
:watch: Not Triaged 11.0 fundamentals/subsvc
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
dotnet/AspNetCore.Docs#37699 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SubtitleEdit/subtitleedit#15108 · 1 comment ·
-
area/docs-content Bug pulumi/docs
Difficulty 1/5 1-3 hours Newbie friendliness 94/100
-
agentic-workflows untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 76/100