我想从我的数据库中的一个整数传回给我,如下(我知道这将是唯一的)一个整数:充分利用数据库铸错误
Dim SequenceyQuery = From a In db.ServiceSequences
Where (a.ServiceId = ReqService And a.StationId = AtStation)
Select a.Sequence
Dim TempSequence As Integer = CInt(SequenceyQuery.ToString)
但我得到的问题尝试投放它在第二行代码中。这是从这里得到这个整数的最好方法,以及如何将它作为一个整数?