开发者

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

开发者 https://www.devze.com 2023-01-10 18:55 出处:网络
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:

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

精彩评论

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