public bool ItemExists(SqlCeOfflineEntity entity)
{
var item = (Item)entity;
using (var command = new SqlCeCommand())
{
command.Connection = GetSqlCeConnection();
command.CommandText = GET_ITEM;
command.Parameters.Add("@ID", SqlDbType.UniqueIdentifier).Value = item.ID;
object result = command.ExecuteScalar();
return result != null;
}
}