这究竟意味着什么?
我正在逐步完成一些代码,当我在vs2010的locals窗口下查看我的datareader的属性时,DR.HasRows显示错误:
HasRows '(DR).HasRows' threw an exception of type 'System.InvalidOperationException' bool {System.InvalidOperationException}
base {"SQL Server Compact does not support calls to HasRows property if the underlying cursor is not scrollable."} System.SystemException {System.InvalidOperationException}
Run Code Online (Sandbox Code Playgroud)
什么是光标,如何使其可滚动?:)