<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Concepts for searching in database</title>
	<link>http://blog.objectmapper.net/2006/12/13/concepts-for-searching-in-database/</link>
	<description>Official blog of the AdFactum ObjectMapper .NET</description>
	<pubDate>Sat, 19 May 2012 07:50:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: Gerhard Stephan</title>
		<link>http://blog.objectmapper.net/2006/12/13/concepts-for-searching-in-database/#comment-1180</link>
		<pubDate>Thu, 22 Feb 2007 12:17:47 +0000</pubDate>
		<guid>http://blog.objectmapper.net/2006/12/13/concepts-for-searching-in-database/#comment-1180</guid>
					<description>Database Engines have sometimes very different ways to do a fulltext search. That's why the ObjectMapper .NET does not support it natively. What you can do is, executing a native SQL Select where you put your SELECT String into the Execute Method. 

&lt;code&gt;
                  /*
                   * Get the low level Native Persister from the SQL Persister
                   */
                  INativePersister nativePersister = sqlPersister as INativePersister;

                  // First example without Parameter 
                  nativePersister.Execute(&quot;EXEC dbo.SayHello&quot;);

                  // Second example is using Parameters
                  nativePersister.ExecuteWithParameter(&quot;EXEC dbo.SayHello @p01&quot;, &quot;Peter&quot;);
&lt;/code&gt;

Also have a look at the query API of the ObjectMapper .NET
http://blog.objectmapper.net/2007/01/22/how-to-build-sql-queries/</description>
		<content:encoded><![CDATA[<p>Database Engines have sometimes very different ways to do a fulltext search. That&#8217;s why the ObjectMapper .NET does not support it natively. What you can do is, executing a native SQL Select where you put your SELECT String into the Execute Method. </p>
<p><code><br />
                  /*<br />
                   * Get the low level Native Persister from the SQL Persister<br />
                   */<br />
                  INativePersister nativePersister = sqlPersister as INativePersister;</p>
<p>                  // First example without Parameter<br />
                  nativePersister.Execute("EXEC dbo.SayHello");</p>
<p>                  // Second example is using Parameters<br />
                  nativePersister.ExecuteWithParameter("EXEC dbo.SayHello @p01", "Peter");<br />
</code></p>
<p>Also have a look at the query API of the ObjectMapper .NET<br />
<a href='http://blog.objectmapper.net/2007/01/22/how-to-build-sql-queries/' rel='nofollow'>http://blog.objectmapper.net/2007/01/22/how-to-build-sql-queries/</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Alex</title>
		<link>http://blog.objectmapper.net/2006/12/13/concepts-for-searching-in-database/#comment-1179</link>
		<pubDate>Thu, 22 Feb 2007 09:35:58 +0000</pubDate>
		<guid>http://blog.objectmapper.net/2006/12/13/concepts-for-searching-in-database/#comment-1179</guid>
					<description>How about fulltext search?</description>
		<content:encoded><![CDATA[<p>How about fulltext search?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Gerhard Stephan</title>
		<link>http://blog.objectmapper.net/2006/12/13/concepts-for-searching-in-database/#comment-1104</link>
		<pubDate>Wed, 10 Jan 2007 06:06:47 +0000</pubDate>
		<guid>http://blog.objectmapper.net/2006/12/13/concepts-for-searching-in-database/#comment-1104</guid>
					<description>Hi (unkown) :),

I'm going to write a new post where I'm going to explain how to query such data. 

But for short: A Where is called a Condition when using the AdFactum ObjectMapper .NET. There're several conditions, like ConditionList, AndCondition, OrCondition, InCondition, NotInCondition and more.  

What you're searching for is a AndCondition with a NotEqual Query Operator, like:

new AndCondition (typeof(Person),'Name', QueryOperator.NotEqual, 'Mike');

Hope I could help you.

Cheers
Gerhard</description>
		<content:encoded><![CDATA[<p>Hi (unkown) <img src='http://blog.objectmapper.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ,</p>
<p>I&#8217;m going to write a new post where I&#8217;m going to explain how to query such data. </p>
<p>But for short: A Where is called a Condition when using the AdFactum ObjectMapper .NET. There&#8217;re several conditions, like ConditionList, AndCondition, OrCondition, InCondition, NotInCondition and more.  </p>
<p>What you&#8217;re searching for is a AndCondition with a NotEqual Query Operator, like:</p>
<p>new AndCondition (typeof(Person),&#8217;Name&#8217;, QueryOperator.NotEqual, &#8216;Mike&#8217;);</p>
<p>Hope I could help you.</p>
<p>Cheers<br />
Gerhard
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: cqwydz</title>
		<link>http://blog.objectmapper.net/2006/12/13/concepts-for-searching-in-database/#comment-1102</link>
		<pubDate>Tue, 09 Jan 2007 14:43:53 +0000</pubDate>
		<guid>http://blog.objectmapper.net/2006/12/13/concepts-for-searching-in-database/#comment-1102</guid>
					<description>thinks for your great work ,but i can't find some more examples ,especially query api document. 
how can i parse the expression &quot;select * from Person where Not Name = 'Mike'&quot;

Best regards,
cqwydz</description>
		<content:encoded><![CDATA[<p>thinks for your great work ,but i can&#8217;t find some more examples ,especially query api document.<br />
how can i parse the expression &#8220;select * from Person where Not Name = &#8216;Mike&#8217;&#8221;</p>
<p>Best regards,<br />
cqwydz
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

