开发者

Cannot apply indexing with [] to an expression of type 'System.Data.IDbCommand'

Do you have an idea what might cause the error in the title? It highligh开发者_运维问答ts an error in the following part of the code:

        SyncAdapter notesSyncAdapter = notesBuilder.ToSyncAdapter();
        ((SqlParameter)notesSyncAdapter.SelectIncrementalInsertsCommand["@sync_last_received_anchor"]).DbType = System.Data.DbType.Binary;
        ((SqlParameter)notesSyncAdapter.SelectIncrementalInsertsCommand.Parameters["@sync_new_received_anchor"]).DbType = System.Data.DbType.Binary;


You forgot a .Parameters after SelectIncrementalInsertsCommand on the second line.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜