Click here to Skip to main content
15,895,667 members
Home / Discussions / C#
   

C#

 
AnswerMessage Removed PinPopular
4-Jul-14 1:36
mvePete O'Hanlon4-Jul-14 1:36 
GeneralMessage Removed Pin
4-Jul-14 1:47
mveRichard Deeming4-Jul-14 1:47 
AnswerMessage Removed Pin
4-Jul-14 14:55
Jesus Daniel 20134-Jul-14 14:55 
GeneralMessage Removed Pin
5-Jul-14 0:49
professionalEddy Vluggen5-Jul-14 0:49 
Questionhow to solve this.... Pin
Nishant.Chauhan803-Jul-14 23:56
Nishant.Chauhan803-Jul-14 23:56 
AnswerRe: how to solve this.... Pin
Eddy Vluggen4-Jul-14 6:21
professionalEddy Vluggen4-Jul-14 6:21 
Questionaccess textbox in a tabPage Pin
Papatrexas3-Jul-14 23:37
Papatrexas3-Jul-14 23:37 
AnswerRe: access textbox in a tabPage Pin
OriginalGriff3-Jul-14 23:52
mveOriginalGriff3-Jul-14 23:52 
Questionc# ListView header text word wrap option Pin
Galym3-Jul-14 18:28
professionalGalym3-Jul-14 18:28 
AnswerRe: c# ListView header text word wrap option Pin
Pete O'Hanlon4-Jul-14 1:48
mvePete O'Hanlon4-Jul-14 1:48 
GeneralRe: c# ListView header text word wrap option Pin
Galym4-Jul-14 17:39
professionalGalym4-Jul-14 17:39 
Questionhow to scan file on virustotal Pin
Member 105796733-Jul-14 17:42
Member 105796733-Jul-14 17:42 
AnswerRe: how to scan file on virustotal Pin
Richard MacCutchan4-Jul-14 0:49
mveRichard MacCutchan4-Jul-14 0:49 
Questionaccessing public static member of one class in another class Pin
KRISHNARAYALU3-Jul-14 11:59
KRISHNARAYALU3-Jul-14 11:59 
AnswerRe: accessing public static member of one class in another class Pin
Matt T Heffron3-Jul-14 12:32
professionalMatt T Heffron3-Jul-14 12:32 
GeneralRe: accessing public static member of one class in another class Pin
KRISHNARAYALU4-Jul-14 0:48
KRISHNARAYALU4-Jul-14 0:48 
GeneralRe: accessing public static member of one class in another class Pin
Pete O'Hanlon4-Jul-14 1:40
mvePete O'Hanlon4-Jul-14 1:40 
AnswerRe: accessing public static member of one class in another class Pin
Dave Kreskowiak3-Jul-14 18:05
mveDave Kreskowiak3-Jul-14 18:05 
AnswerRe: accessing public static member of one class in another class Pin
Richard MacCutchan4-Jul-14 0:48
mveRichard MacCutchan4-Jul-14 0:48 
Questionmoving slideshow Pin
Member 109229203-Jul-14 8:36
Member 109229203-Jul-14 8:36 
AnswerRe: moving slideshow Pin
User 48350473-Jul-14 9:22
User 48350473-Jul-14 9:22 
QuestionMongo DB Projection from C# Pin
Ennis Ray Lynch, Jr.3-Jul-14 8:22
Ennis Ray Lynch, Jr.3-Jul-14 8:22 
First let me pre-face, I am not looking for the LINQ answer. LINQ brings the entire document over the wire and then projects the document, which is worthless when trying to reduce network usage. Don't make me go to stack overflow!


Question:
How can I send a find query to MongoDB using the Official C# Mongo class library, and use a server-side projection? When I run
<br />
db.DBNAME.find(<br />
    {_id:'401835_2014_05_01', <br />
     Points: {<br />
         $elemMatch: {<br />
             ExtendedId:"xxxxxxx"<br />
             } <br />
        }<br />
    },<br />
    { "Points.$":1}<br />
)<br />

from the command line (well ROBOMONGO) the world is a happy place and the projection works great. However, there seems to exist no method to call a server-side projection from the C# library????

note, I believe DB.eval can do it but db.eval is for ADMIN only and can lock the database so I am trying to avoid that option.
Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting.

"And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

"All users always want Excel" --Ennis Lynch

AnswerRe: Mongo DB Projection from C# Pin
Richard Deeming3-Jul-14 8:47
mveRichard Deeming3-Jul-14 8:47 
GeneralRe: Mongo DB Projection from C# Pin
Ennis Ray Lynch, Jr.3-Jul-14 9:20
Ennis Ray Lynch, Jr.3-Jul-14 9:20 
QuestionInternet Cafe Management System Pin
Abdul-Qaadir2-Jul-14 10:14
Abdul-Qaadir2-Jul-14 10:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.