[CSHARP-1074] Reimplement legacy CRUD methods that use commands on top of operations in Core Created: 22/Sep/14  Updated: 06/Apr/23  Resolved: 13/Nov/14

Status: Closed
Project: C# Driver
Component/s: Operations
Affects Version/s: None
Fix Version/s: 2.0

Type: Task Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Case:

 Description   

This involves the following operations:

Aggregate
Count
Distinct
FindAndModify
FindAndRemove
GeoHaystackSearchAs
GeoNearAs
Group
Eval
GetLastError (perhaps this one should just be removed)



 Comments   
Comment by Craig Wilson [ 12/May/15 ]

Daniel,

findAndModify will only modify 1 document. This is by design.

Perhaps I'm misunderstanding your problem. If so, please rephrase and possibly provide a scenario/example.

Craig

Comment by Dan Cumings [ 12/May/15 ]

I am still not able to do findAndModify for more than a single row. Either that or I am unable to find the documentation.

http://docs.mongodb.org/manual/reference/method/db.collection.findAndModify/

Comment by Githook User [ 13/Nov/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1074: Remove RunCommandAs helper method from MongoCollection.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/ee32fc3dd4d8096098c2d496573d77c14a717a04

Comment by Githook User [ 10/Nov/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1074: Reimplement legacy AggregateExplain method on top of Core.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/5f0c13402a6dcdc10c5a9aaadfffe3ad4a4124e9

Comment by Githook User [ 10/Nov/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1074: Reimplement legacy Aggregate methods using an operation in Core.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/2fc79f0ac767b335b05902a153eae78daa66c33e

Comment by Githook User [ 07/Nov/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1074: Reimplement legacy MapReduce using an operation in Core. Add tests for MapReduceOperations.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/7b03ea28edec264b631d2eb2825d5d99d2383040

Comment by Githook User [ 29/Oct/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1074: Deprecate GetLastError and GetLastErrorResult.
Branch: v1.x
https://github.com/mongodb/mongo-csharp-driver/commit/08b2b6fc0b438a311403535402e92980fb4269c2

Comment by Githook User [ 29/Oct/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1074: Remove GetLastError from the legacy API.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/eeb8dca1c03fc076c9b26be56f47db04b41e88cc

Comment by Githook User [ 30/Sep/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1074: Introduce FindAndModifyValueDeserializer helper class.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/3b68c5728a6af88e4de30823389d5a3dbeeebf81

Comment by Githook User [ 30/Sep/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1074: Reimplement MongoCollection FindAndModify and FindAndRemove using operations from Core.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/2dd0a9554c578a5d06dcb7d622e9cf9f9f0894a7

Comment by Githook User [ 29/Sep/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1074: Reimplement MongoDatabase Eval using operation in Core.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/e823d2f004c5fd6a9a454e4b738a89322d6837b0

Comment by Githook User [ 29/Sep/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1074: Added before and after method names to RequiresServerAttribute.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/d4de2a5a89a1f3946528e76693cbbcdf7ae14a82

Comment by Githook User [ 29/Sep/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1074: Added [RequiresServer] to CountOperation test methods that use the server. Added methods to SuiteConfiguration to generate unique collection names for test fixtures or test methods by scanning the call stack and using the corresponding type and method names.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/c15b105d606b257fc535ba04fcfd12c0a4f6a86d

Comment by Githook User [ 29/Sep/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1074: Added integration tests for CountOperation.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/27c76254ebe847c32db927b2e62ab27840190889

Comment by Githook User [ 29/Sep/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1074: Reimplement MongoCollection Group using operation in Core.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/5fcf0cdd75a1d8add2693d4fba831789a12484cd

Comment by Githook User [ 29/Sep/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1074: Code review changes to MongoCollection Distinct.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/4440a7b9a5454e98dae5b3715b58150b9b33f742

Comment by Githook User [ 29/Sep/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1074: Reimplement MongoCollection Distinct using Core operation.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/1f99a266df63108e0265a07f064dbe8d41d77569

Comment by Githook User [ 29/Sep/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1074: Reimplement MongoCollection Count using Core operation.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/e685098ddedbe5afa86bbb6d25563a49872f37d8

Generated at Wed Feb 07 21:38:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.