skipme / simple-mongodb Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/simple-mongodb
Automatically exported from code.google.com/p/simple-mongodb
This code can only find items with only one string in array equal to "p".
string p;
var selector = new { n = new string[]{p} };
T = Tags.FindOne<Tag>(selector);
where n:["tag1","tag2"]
Original issue reported on code.google.com by [email protected]
on 28 Mar 2010 at 9:40
What steps will reproduce the problem?
1. Pass a DateTime object to the any of the Between(), Lt(), Gt() methods
of a QueryProperty object and try to execute the query.
What is the expected output? What do you see instead?
Correctly the generated JSON should look like:
{ Date: { $gte: "\/Date(1230764400000+0100)\/", $lte:
"\/Date(1274047200000+0200)\/" } }
Instead it internally just calls ToString() on the DateTime objects what
results in something like:
{ Date: { $gte: 01.01.2009 00:00:00, $lte: 17.05.2010 00:00:00 } }
To fix the problem I used JsonConvert.SerializeObject() and passed strings.
You might consider using JsonConvert internally instead of ToString() or
provide overloads for DateTime.
Original issue reported on code.google.com by [email protected]
on 17 May 2010 at 3:19
Please please please support the simple mode in the SimoCollection class.
I don't want to customize my class:ISimoCollection only for the simple
mode.
Thanks a lot!
Original issue reported on code.google.com by [email protected]
on 24 Apr 2010 at 2:24
What steps will reproduce the problem?
1. Get latest
2. Build and Run All Unit Tests
What is the expected output? What do you see instead?
ToKeyValue_DateTime_Equals unit to succeed. Assert.AreEqual failed.
Expected:<1/1/2010 1:47:53 PM>. Actual:<1/1/2010 4:47:53 AM>
What version of the product are you using? On what operating system?
0.17. Mongodb v1.4.2, Windows 7 64 bit.
Please provide any additional information below.
Seems like the test isn't taking timezone into consideration.
Original issue reported on code.google.com by [email protected]
on 4 May 2010 at 1:49
I have such a class
[JsonObject(Title = "Mrk")]
public class Mark
{
[JsonProperty(PropertyName = "t")]
public long tid;
[JsonProperty(PropertyName = "m")]
public float mark = 0.1f;
}
I want to query collection with full field name mark instead of "m", there
will be no need to dead with dynamic code so that should be faster, or it
could be done via JSON selector object
Original issue reported on code.google.com by [email protected]
on 20 Mar 2010 at 6:19
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.