[CSHARP-212] Make C# driver more Powershell (and metadata driven programming) friendly Created: 25/Apr/11  Updated: 02/Apr/15  Resolved: 28/Apr/11

Status: Closed
Project: C# Driver
Component/s: Feature Request
Affects Version/s: 1.0
Fix Version/s: 1.1

Type: Improvement Priority: Minor - P4
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

In Powershell it is very difficult to call generic methods. In metadata driven programming the type argument to the generic method is not known at compile time, which makes generic methods inappropriate even in C# sometimes.

Add non-generic versions of the following methods:

BsonExtensionMethods
ToBson
ToBsonDocument
ToJson

BsonDocumentWrapper
Create
CreateMultiple

UpdateBuilder
AddToSetEachWrapped
AddToSetWrapped
PullAllWrapped
PullWrapped
PushAllWrapped
PushWrapped
Replace
SetWrapped

FindAndModifyResult
GetModifiedDocumentAs

MapReduceResult
GetInlineResultsAs
GetResultsAs

MongoCollection
FindAllAs
FindAs
FindOneAs
FindOneByIdAs
GeoNearAs
Save

MongoCursor
Clone

MongoDatabase
CreateCollectionSettings
FetchDBRefAs
GetCollection
RunCommandAs

MongoServer
FetchDBRefAs
RunAdminCommandAs



 Comments   
Comment by Robert Stam [ 28/Apr/11 ]

All the Powershell friendly versions of generic methods have been implemented.

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