Well, in SQLLite there is not exist the possibility to delete on cascade, or I don't know how.
Imagine that I have two tables, Table A and Table B. The table B has the IDtableA field, because is a child, and imagine that I have the following situation:
1.- user A load record 1 from TableA and load it in the context. 2.- user A load all the child records from table B. 3.- user B add a new record to table B that is child of table A. 4.- user A save changes and delete record 1 and all the childs that he loaded in the first time, but not include the new child add by the user B.
So in SqlLite I don't have a model, neither realationships between tables, when user B add a new child, not check if the parent exists.
is it posible ensure reference integrity in Sqlite?
Thanks.