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