public bool StatusExists(SqlCeOfflineEntity entity)
{
var status = (Status) entity;
using (var command = new SqlCeCommand())
{
command.Connection = GetSqlCeConnection();
command.CommandText = GET_STATUS;
command.Parameters.Add("@ID", SqlDbType.Int).Value = status.ID;
object result = command.ExecuteScalar();
return result != null;
}
}