public void Add(SwatchSqlite obj) { lock (locker) { using (var connection = GetConnection()) { var item = GetXidRollo(obj.idrollo); if (item == null) { connection.Insert(obj); } } } }
public void UpdateStatus(SwatchSqlite obj) { lock (locker) { using (var connection = GetConnection()) { var item = GetXidRollo(obj.idrollo); if (item == null) { connection.Insert(obj); } else { connection.Update(item); } } } }