return FALSE; $r = well_tag_thread__update(array('id' => $id), $update); return $r; } function well_tag_thread_find($tagid, $page, $pagesize) { $arr = well_tag_thread__find(array('tagid' => $tagid), array('id' => -1), $page, $pagesize); return $arr; } function well_tag_thread_find_by_tid($tid, $page, $pagesize) { $arr = well_tag_thread__find(array('tid' => $tid), array(), $page, $pagesize); return $arr; } ?>upgrade - MongoDB Driver update issues from version 2.27 to version 3.2.1 - Stack Overflow
最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

upgrade - MongoDB Driver update issues from version 2.27 to version 3.2.1 - Stack Overflow

programmeradmin3浏览0评论

I am using Assembly MongoDB.Driver version 2.27 in my C# code (Targeting to netstandard2.1 as need some backward compatibility for older codebase). When I am changing version of Assembly MongoDB.Driver to 3.2 (Which is newer version), it generates following compile time error. What could be the issue ?

Error: The type or namespace name 'IMongoQueryable<>' could not be found (are you missing a using directive or an assembly reference?)

Please note that Version 3.2.1 is much newer version and I have checked the compatibility. This can be found here :

My Database Server version is 7.0.16.

I have found few links that says that MongoDB Driver upgrade 3.x has some LINQ Support issues but did not get concrete information around it.

Can someone please help me to upgrade MongoDB Driver to latest version 3.2.1?

I am using Assembly MongoDB.Driver version 2.27 in my C# code (Targeting to netstandard2.1 as need some backward compatibility for older codebase). When I am changing version of Assembly MongoDB.Driver to 3.2 (Which is newer version), it generates following compile time error. What could be the issue ?

Error: The type or namespace name 'IMongoQueryable<>' could not be found (are you missing a using directive or an assembly reference?)

Please note that Version 3.2.1 is much newer version and I have checked the compatibility. This can be found here : https://www.mongodb/docs/drivers/csharp/current/compatibility/#std-label-csharp-compatibility-tables

My Database Server version is 7.0.16.

I have found few links that says that MongoDB Driver upgrade 3.x has some LINQ Support issues but did not get concrete information around it.

Can someone please help me to upgrade MongoDB Driver to latest version 3.2.1?

Share Improve this question asked Mar 20 at 9:34 Creative LearnerCreative Learner 233 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

Typically, when you upgrade a driver from 2.x to 3.x, there are breaking changes. This is called semantic versioning. According to the mongo db documentation found here this is the possible cause:

The driver replaces the IMongoQueryable interface with the IQueryable interface, following the pattern used by most other LINQ providers. If your application contains references to IMongoQueryable, replace them with IQueryable.

发布评论

评论列表(0)

  1. 暂无评论