internal int Delete <T>(int id, ISqlLiteDataObjectCrud <T> crud) where T : class, ISqlLiteDataObject { lock (Locker) { int r; Connection = new SqliteConnection("Data Source=" + Path); Connection.Open(); using (var command = Connection.CreateCommand()) { crud.Delete(id, command); r = command.ExecuteNonQuery(); } Connection.Close(); return(r); } }