I've just updated all the SQLite nugget packages in my proj. All db operations were working just fine.
Now, when I try this: items = db.GetAllWithChildren();
I get this error: Item.ItemEvents: OneToMany relationship origin must have Primary Key
So nothing has changed in code and primary keys are GUIDs as strings All entities inherit from a base class like this:
public class BusinessEntityBase : IBusinessEntity
{
public BusinessEntityBase()
{
Id = Guid.NewGuid().ToString();
}
[PrimaryKey]
public string Id { get; set; }
}
Does that error mean that I cannot/should not inherit from a base class which implements the Id property? Should each class implement it's own Id property?
I'm only asking as all these attributes/relationships are sorted out through reflection and something might have changed to negate how I've built my entity layer...
Not sure why I'm getting this now and not before updating all SQLite plugins...