I have a Warning
model, with which I insert warnings into LiteDB.
I want to be able to insert warnings with the same UserId
, like in SQLite, but I get this error:
Cannot insert duplicate key in unique index '_id'.
The duplicate value is '{"$numberLong":"483817273803538450"}'.
Warning
Model
[BsonId(false)]
public ulong UserId { get; set; }
public string Reason { get; set; }
public string Issuer { get; set; }
public int Status { get; set; }
Is there anything I can do, to insert a warning with the same UserId
multiple times?