<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-3198935374994345981.post5387322514306944756..comments</id><updated>2008-04-26T17:18:17.008+02:00</updated><category term='Reviews'/><category term='AOP'/><category term='LINQ'/><category term='Microsoft'/><category term='MVC'/><category term='IoC'/><category term='Javascript'/><category term='MGrammar'/><category term='ALT.NET'/><category term='Logging'/><category term='Misc'/><category term='Design'/><category term='Castle'/><category term='Security'/><category term='MSBuild'/><category term='Science'/><category term='Presentations'/><category term='ASP.NET MVC'/><category term='ASP.NET'/><category term='C#'/><category term='M'/><category term='Design By Contract'/><category term='TDD'/><category term='MonoRail'/><category term='Boo'/><category term='Git'/><category term='Graphics'/><category term='CQRS'/><category term='WCF'/><category term='Oslo'/><category term='Agile'/><category term='PDC'/><category term='CMS'/><category term='CodeSaga'/><category term='NHibernate'/><category term='DDD'/><category term='Benchmarks'/><category term='HTML/CSS'/><category term='NAnt'/><category term='Slick Code Search'/><category term='WPF'/><category term='Silverlight'/><category term='WatiN'/><title type='text'>Comments on Coding Instinct: Building Dynamic Queries with a Criteria API</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.codinginstinct.com/feeds/5387322514306944756/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/5387322514306944756/comments/default'/><link rel='alternate' type='text/html' href='http://www.codinginstinct.com/2008/04/building-dynamic-queries-with-criteria.html'/><author><name>Torkel Ödegaard</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3198935374994345981.post-2192121596251749693</id><published>2008-04-26T17:18:00.000+02:00</published><updated>2008-04-26T17:18:00.000+02:00</updated><title type='text'>Yes, you are correct, you can also use MatchMode. ...</title><content type='html'>Yes, you are correct, you can also use MatchMode. I am not sure why I didn't use it here, I usually do.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/5387322514306944756/comments/default/2192121596251749693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/5387322514306944756/comments/default/2192121596251749693'/><link rel='alternate' type='text/html' href='http://www.codinginstinct.com/2008/04/building-dynamic-queries-with-criteria.html?showComment=1209223080000#c2192121596251749693' title=''/><author><name>Torkel Ödegaard</name><uri>http://www.blogger.com/profile/08914354140151859277</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.codinginstinct.com/2008/04/building-dynamic-queries-with-criteria.html' ref='tag:blogger.com,1999:blog-3198935374994345981.post-5387322514306944756' source='http://www.blogger.com/feeds/3198935374994345981/posts/default/5387322514306944756' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1471368035'/></entry><entry><id>tag:blogger.com,1999:blog-3198935374994345981.post-1720563172738472939</id><published>2008-04-26T15:50:00.000+02:00</published><updated>2008-04-26T15:50:00.000+02:00</updated><title type='text'>I think your like statement didn't need to concate...</title><content type='html'>I think your like statement didn't need to concatenate the % symbol, in the Pre-NHQ version. Why not use MatchMode?&lt;BR/&gt;&lt;BR/&gt;query.CreateCriteria("PhoneNumbers").Add(Expression.Like("Number", searchOptions.PhoneNumber, MatchMode.Start))</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/5387322514306944756/comments/default/1720563172738472939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/5387322514306944756/comments/default/1720563172738472939'/><link rel='alternate' type='text/html' href='http://www.codinginstinct.com/2008/04/building-dynamic-queries-with-criteria.html?showComment=1209217800000#c1720563172738472939' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.codinginstinct.com/2008/04/building-dynamic-queries-with-criteria.html' ref='tag:blogger.com,1999:blog-3198935374994345981.post-5387322514306944756' source='http://www.blogger.com/feeds/3198935374994345981/posts/default/5387322514306944756' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1953768357'/></entry><entry><id>tag:blogger.com,1999:blog-3198935374994345981.post-2147143252497142859</id><published>2008-04-16T07:20:00.000+02:00</published><updated>2008-04-16T07:20:00.000+02:00</updated><title type='text'>Here is a complete example using NHQ:&lt;br&gt;&lt;br&gt;publi...</title><content type='html'>Here is a complete example using NHQ:&lt;BR/&gt;&lt;BR/&gt;public IList&amp;lt;Employee&amp;gt; Find(EmployeeSearchOptions options)&lt;BR/&gt;{&lt;BR/&gt;  QueryBuilder&amp;lt;Employee&amp;gt; query = Where.Employee.CompanyName == options.CompanyName;&lt;BR/&gt;&lt;BR/&gt;  if (options.FirstName != null)&lt;BR/&gt;  {&lt;BR/&gt;    query &amp;= Where.Employee.FirstName == options.FirstName;&lt;BR/&gt;  }&lt;BR/&gt;&lt;BR/&gt;  if (options.LastName != null)&lt;BR/&gt;  {&lt;BR/&gt;    query &amp;= Where.Employee.LastName == options.LastName;&lt;BR/&gt;  }&lt;BR/&gt;&lt;BR/&gt;  if (options.PhoneNumber != null)&lt;BR/&gt;  {&lt;BR/&gt;    query &amp;= Where.Employee.PhoneNumbers.Number.Like(options.PhoneNumber, MatchMode.Start);&lt;BR/&gt;  }            &lt;BR/&gt;&lt;BR/&gt;  return Repository&amp;lt;Employee&amp;gt;.FindAll(query, OrderBy.Employee.LastName.Desc);&lt;BR/&gt;}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/5387322514306944756/comments/default/2147143252497142859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/5387322514306944756/comments/default/2147143252497142859'/><link rel='alternate' type='text/html' href='http://www.codinginstinct.com/2008/04/building-dynamic-queries-with-criteria.html?showComment=1208323200000#c2147143252497142859' title=''/><author><name>Torkel Ödegaard</name><uri>http://www.blogger.com/profile/08914354140151859277</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.codinginstinct.com/2008/04/building-dynamic-queries-with-criteria.html' ref='tag:blogger.com,1999:blog-3198935374994345981.post-5387322514306944756' source='http://www.blogger.com/feeds/3198935374994345981/posts/default/5387322514306944756' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1471368035'/></entry><entry><id>tag:blogger.com,1999:blog-3198935374994345981.post-905520797693492789</id><published>2008-04-15T22:38:00.000+02:00</published><updated>2008-04-15T22:38:00.000+02:00</updated><title type='text'>Cqn you post a complete example (with the signatur...</title><content type='html'>Cqn you post a complete example (with the signature of the function), it is very interesting... &lt;BR/&gt;&lt;BR/&gt;P</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/5387322514306944756/comments/default/905520797693492789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/5387322514306944756/comments/default/905520797693492789'/><link rel='alternate' type='text/html' href='http://www.codinginstinct.com/2008/04/building-dynamic-queries-with-criteria.html?showComment=1208291880000#c905520797693492789' title=''/><author><name>pdu</name><uri>http://www.blogger.com/profile/08602700684344756721</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.codinginstinct.com/2008/04/building-dynamic-queries-with-criteria.html' ref='tag:blogger.com,1999:blog-3198935374994345981.post-5387322514306944756' source='http://www.blogger.com/feeds/3198935374994345981/posts/default/5387322514306944756' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1640276321'/></entry></feed>
