<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Simple-MongoDB &#8211; Simplified storage of entities</title>
	<atom:link href="http://daniel.wertheim.se/2010/03/10/simple-mongodb-simplified-storage-of-entities/feed/" rel="self" type="application/rss+xml" />
	<link>http://daniel.wertheim.se/2010/03/10/simple-mongodb-simplified-storage-of-entities/</link>
	<description>Love what you do - Continue to do it - Be eager to learn more about it.</description>
	<lastBuildDate>Sat, 21 Aug 2010 09:25:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2010/03/10/simple-mongodb-simplified-storage-of-entities/#comment-182</link>
		<dc:creator>Daniel Wertheim</dc:creator>
		<pubDate>Mon, 22 Mar 2010 07:09:01 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=362#comment-182</guid>
		<description>Thanks. It just got a little bit better with regexs and custom ids. 

//Daniel</description>
		<content:encoded><![CDATA[<p>Thanks. It just got a little bit better with regexs and custom ids. </p>
<p>//Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2010/03/10/simple-mongodb-simplified-storage-of-entities/#comment-181</link>
		<dc:creator>Daniel Wertheim</dc:creator>
		<pubDate>Mon, 22 Mar 2010 07:07:39 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=362#comment-181</guid>
		<description>Fixed support for Guid, int, long and string. I hope it&#039;s enough for now. Please provide feedback of how you would like to use it. 

//Daniel</description>
		<content:encoded><![CDATA[<p>Fixed support for Guid, int, long and string. I hope it&#8217;s enough for now. Please provide feedback of how you would like to use it. </p>
<p>//Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kostya</title>
		<link>http://daniel.wertheim.se/2010/03/10/simple-mongodb-simplified-storage-of-entities/#comment-175</link>
		<dc:creator>Kostya</dc:creator>
		<pubDate>Sat, 20 Mar 2010 17:02:24 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=362#comment-175</guid>
		<description>BEST MONGO DRIVERS I EVER SAW !!!! COOOL SOFT !!!!!</description>
		<content:encoded><![CDATA[<p>BEST MONGO DRIVERS I EVER SAW !!!! COOOL SOFT !!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rei</title>
		<link>http://daniel.wertheim.se/2010/03/10/simple-mongodb-simplified-storage-of-entities/#comment-173</link>
		<dc:creator>Rei</dc:creator>
		<pubDate>Sat, 20 Mar 2010 10:39:33 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=362#comment-173</guid>
		<description>That is an idea, but it &quot;polutes&quot; the Domain model :/</description>
		<content:encoded><![CDATA[<p>That is an idea, but it &#8220;polutes&#8221; the Domain model :/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2010/03/10/simple-mongodb-simplified-storage-of-entities/#comment-170</link>
		<dc:creator>Daniel Wertheim</dc:creator>
		<pubDate>Fri, 19 Mar 2010 21:13:27 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=362#comment-170</guid>
		<description>Hi,

As of right now the _id used in conjunction with the references needs to be of SimoObjectId. Except from that you can use:
[sourcecode language=&quot;csharp&quot;]
public class Person
{
    public Guid _id { get; set; }
}
[/sourcecode]

I can look at making it work with custom id&#039;s even with references.

But why not see the _id as DB-specific and instead focus on the business-keys?

//Daniel</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>As of right now the _id used in conjunction with the references needs to be of SimoObjectId. Except from that you can use:</p>
<pre class="brush: csharp;">
public class Person
{
    public Guid _id { get; set; }
}
</pre>
<p>I can look at making it work with custom id&#8217;s even with references.</p>
<p>But why not see the _id as DB-specific and instead focus on the business-keys?</p>
<p>//Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rei</title>
		<link>http://daniel.wertheim.se/2010/03/10/simple-mongodb-simplified-storage-of-entities/#comment-168</link>
		<dc:creator>Rei</dc:creator>
		<pubDate>Fri, 19 Mar 2010 09:13:43 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=362#comment-168</guid>
		<description>That looks interesting

:)

In regard to the domain model, would it be possible to specify the ID field as any type instead of as a SimoId?</description>
		<content:encoded><![CDATA[<p>That looks interesting</p>
<p> <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>In regard to the domain model, would it be possible to specify the ID field as any type instead of as a SimoId?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2010/03/10/simple-mongodb-simplified-storage-of-entities/#comment-165</link>
		<dc:creator>Daniel Wertheim</dc:creator>
		<pubDate>Thu, 18 Mar 2010 22:01:33 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=362#comment-165</guid>
		<description>Hi,
You use the Find-method in the EntityStore-API or the Session-API, and write like this:

[sourcecode language=&quot;csharp&quot;]
//Find(@&quot;{$where : &quot;&quot;this.Name.indexOf(&#039;Daniel&#039;) &gt; -1&quot;&quot;}&quot;);
//Find(@&quot;{$where : &quot;&quot;function() { return this.Name.indexOf(&#039;Daniel&#039;) &gt; -1;}&quot;&quot;}&quot;);
//Find(new WhereOperator(@&quot;this.Name.indexOf(&#039;Daniel&#039;) &gt; -1&quot;));
[/sourcecode]

//Daniel</description>
		<content:encoded><![CDATA[<p>Hi,<br />
You use the Find-method in the EntityStore-API or the Session-API, and write like this:</p>
<pre class="brush: csharp;">
//Find(@&quot;{$where : &quot;&quot;this.Name.indexOf('Daniel') &amp;gt; -1&quot;&quot;}&quot;);
//Find(@&quot;{$where : &quot;&quot;function() { return this.Name.indexOf('Daniel') &amp;gt; -1;}&quot;&quot;}&quot;);
//Find(new WhereOperator(@&quot;this.Name.indexOf('Daniel') &amp;gt; -1&quot;));
</pre>
<p>//Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rei</title>
		<link>http://daniel.wertheim.se/2010/03/10/simple-mongodb-simplified-storage-of-entities/#comment-159</link>
		<dc:creator>Rei</dc:creator>
		<pubDate>Thu, 18 Mar 2010 13:43:26 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=362#comment-159</guid>
		<description>Hi Daniel,

How would you write a $where statement... say something like this:

(from the mongo console)
db.ColName.find({ $where : function() { foo == 1 &amp;&amp; bar == 2 } })

?</description>
		<content:encoded><![CDATA[<p>Hi Daniel,</p>
<p>How would you write a $where statement&#8230; say something like this:</p>
<p>(from the mongo console)<br />
db.ColName.find({ $where : function() { foo == 1 &amp;&amp; bar == 2 } })</p>
<p>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2010/03/10/simple-mongodb-simplified-storage-of-entities/#comment-136</link>
		<dc:creator>Daniel Wertheim</dc:creator>
		<pubDate>Fri, 12 Mar 2010 10:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=362#comment-136</guid>
		<description>The real thank you to that should go to Newtonsoft Json.Net :)

I sat down last night fiddling with having an SimoEntityReference. I can create an Eager loading option without having any proxy. All I have to do is keep track of the metadata of the entities (eg. using AppDomain) and if it&#039;s an entity with references and the Session has Eagerloading = true, these EntityReferences could be loaded with the referenced entity.

Feedback?

//Daniel</description>
		<content:encoded><![CDATA[<p>The real thank you to that should go to Newtonsoft Json.Net <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I sat down last night fiddling with having an SimoEntityReference. I can create an Eager loading option without having any proxy. All I have to do is keep track of the metadata of the entities (eg. using AppDomain) and if it&#8217;s an entity with references and the Session has Eagerloading = true, these EntityReferences could be loaded with the referenced entity.</p>
<p>Feedback?</p>
<p>//Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rei</title>
		<link>http://daniel.wertheim.se/2010/03/10/simple-mongodb-simplified-storage-of-entities/#comment-135</link>
		<dc:creator>Rei</dc:creator>
		<pubDate>Fri, 12 Mar 2010 09:59:55 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=362#comment-135</guid>
		<description>Btw, just tried out the driver and i&#039;m impressed at the speed :)

Nice job.</description>
		<content:encoded><![CDATA[<p>Btw, just tried out the driver and i&#8217;m impressed at the speed <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Nice job.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
