<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>QueryFramework - Build and execute sql queries in an object oriented way</title><link>http://www.codeplex.com/queryframework/Project/ProjectRss.aspx</link><description>A simple framework for building sql statements in an object oriented way, executing sql statements with database independency and providing simple object persistence.</description><item><title>UPDATED RELEASE: QueryFramework v0.1 (oct 05, 2007)</title><link>http://www.codeplex.com/queryframework/Release/ProjectReleases.aspx?ReleaseId=7495</link><description>&amp;#42;Introduction&amp;#42;&lt;br /&gt;QueryFramework is created with four main goals in mind&amp;#58;&lt;br /&gt;&lt;br /&gt;   1. Create sql queries in an object oriented way.&lt;br /&gt;   2. Create sql queries with independence of the database dialect used.&lt;br /&gt;   3. Execute queries with abstraction of the database used.&lt;br /&gt;   4. Create a simple implementation of the ActiveRecord pattern with a lot of flexibility to mix simple save&amp;#47;update&amp;#47;load objects with common sql queries.&lt;br /&gt;&lt;br /&gt;&amp;#42;First release of QueryFramework&amp;#42;&lt;br /&gt;This is the first release of the QueryFramework but we have been using it already for months so it&amp;#39;s quite stable.&lt;br /&gt;Any comments and new features are welcome.&lt;br /&gt;&lt;br /&gt;For examples and documentation, visit QueryFramework home page&amp;#58;&lt;br /&gt;&amp;#91;url&amp;#58;http&amp;#58;&amp;#47;&amp;#47;www.codeplex.com&amp;#47;queryframework&amp;#93;&lt;br /&gt;&lt;br /&gt;Yours,&lt;br /&gt;&lt;br /&gt;Richard Chamorro&lt;br /&gt;QueryFramework coordinator&lt;br /&gt;&amp;#91;url&amp;#58;http&amp;#58;&amp;#47;&amp;#47;www.avanzis.com&amp;#93;</description><author></author><pubDate>Tue, 18 Mar 2008 09:54:07 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: QueryFramework v0.1 (oct 05, 2007) 20080318095407A</guid></item><item><title>NEW POST: How to use OR operator in WhereClause?</title><link>http://www.codeplex.com/queryframework/Thread/View.aspx?ThreadId=23682</link><description>&lt;div class="wikidoc"&gt;
How to use OR Operator in Where Clause?&lt;br /&gt; &lt;br /&gt;e.g&lt;br /&gt; &lt;br /&gt;(CustomerID=&amp;quot;33&amp;quot; OR CustomerID=&amp;quot;###&amp;quot;)&lt;br /&gt; &lt;br /&gt;And how to use multiple statements in WhereClause with different operators??&lt;br /&gt; &lt;br /&gt;etc&lt;br /&gt;
&lt;/div&gt;</description><author>Shyamsunder</author><pubDate>Mon, 10 Mar 2008 11:09:45 GMT</pubDate><guid isPermaLink="false">NEW POST: How to use OR operator in WhereClause? 20080310110945A</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/queryframework/SourceControl/ListDownloadableCommits.aspx</link><description>Updated MySqlDataProvider to use MySql Connector 5.0.8.1 and added the connector DLL file as reference</description><author>KingGudu</author><pubDate>Thu, 18 Oct 2007 09:47:48 GMT</pubDate><guid isPermaLink="false">Source code checked in 20071018094748A</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/queryframework/SourceControl/ListDownloadableCommits.aspx</link><description>Changed FindOne Method signature to be consistent with other methods like FindAll</description><author>KingGudu</author><pubDate>Wed, 17 Oct 2007 13:47:44 GMT</pubDate><guid isPermaLink="false">Source code checked in 20071017014744P</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/queryframework/SourceControl/ListDownloadableCommits.aspx</link><description>Added BeforeDeleteMethod&amp;#40;&amp;#41;&amp;#59;&amp;#13;&amp;#10;Changed default connection string name for QueryObjects</description><author>KingGudu</author><pubDate>Wed, 17 Oct 2007 11:49:46 GMT</pubDate><guid isPermaLink="false">Source code checked in 20071017114946A</guid></item><item><title>CREATED ISSUE: Add BeforeDelete to  ActiveRecordBase</title><link>http://www.codeplex.com/queryframework/WorkItem/View.aspx?WorkItemId=4037</link><description>Add a virtual method that is called before an object is deleted.&lt;br /&gt;</description><author>KingGudu</author><pubDate>Wed, 17 Oct 2007 11:25:44 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: Add BeforeDelete to  ActiveRecordBase 20071017112544A</guid></item><item><title>UPDATED WIKI: QueryFramework</title><link>http://www.codeplex.com/queryframework/Wiki/View.aspx?title=QueryFramework&amp;version=2</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
QueryFramework
&lt;/h1&gt; &lt;br /&gt; &lt;br /&gt;The main function of the QueryFramework is to configure all the components to use a database &lt;b&gt;dialect&lt;/b&gt;. A dialect is the sql language variation used by a database for queries.&lt;br /&gt; &lt;br /&gt;For example, if you want to get the 5 first articles of the articles table, the sentence in Sql Server is:&lt;br /&gt; &lt;br /&gt;&lt;pre&gt;
SELECT TOP 5 * FROM Articles;
&lt;/pre&gt; &lt;br /&gt;But the sentence is different in MySql:&lt;br /&gt; &lt;br /&gt;&lt;pre&gt;
SELECT * FROM Articles LIMIT 5;
&lt;/pre&gt; &lt;br /&gt;This differences forces developers to have database types and their different dialects in mind when creating their queries. QueryFramework tries to simplify just configuring the dialect one time at application start.&lt;br /&gt;
&lt;/div&gt;</description><author>KingGudu</author><pubDate>Wed, 17 Oct 2007 11:23:00 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: QueryFramework 20071017112300A</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/queryframework/SourceControl/ListDownloadableCommits.aspx</link><description></description><author>KingGudu</author><pubDate>Wed, 10 Oct 2007 16:40:13 GMT</pubDate><guid isPermaLink="false">Source code checked in 20071010044013P</guid></item><item><title>CREATED ISSUE: Implement provider pattern for QueryProcessor and QueryExecutor</title><link>http://www.codeplex.com/queryframework/WorkItem/View.aspx?WorkItemId=3851</link><description>Implement the provider pattern for QueryProcessor of QueryBuilder and QueryExecutor so the queryframework can be extended.&lt;br /&gt;</description><author>KingGudu</author><pubDate>Wed, 10 Oct 2007 10:38:08 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: Implement provider pattern for QueryProcessor and QueryExecutor 20071010103808A</guid></item><item><title>CREATED TASK: Translate comments from Spanish to English</title><link>http://www.codeplex.com/queryframework/WorkItem/View.aspx?WorkItemId=3850</link><description>English language allow more developers to understand comments.&lt;br /&gt;</description><author>KingGudu</author><pubDate>Wed, 10 Oct 2007 10:06:54 GMT</pubDate><guid isPermaLink="false">CREATED TASK: Translate comments from Spanish to English 20071010100654A</guid></item><item><title>CREATED TASK: Sign assembly</title><link>http://www.codeplex.com/queryframework/WorkItem/View.aspx?WorkItemId=3849</link><description>An assembly must be signed to be reference by other signed assemblies.&lt;br /&gt;</description><author>KingGudu</author><pubDate>Wed, 10 Oct 2007 10:05:29 GMT</pubDate><guid isPermaLink="false">CREATED TASK: Sign assembly 20071010100529A</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/queryframework/SourceControl/ListDownloadableCommits.aspx</link><description>Updated to v0.2</description><author>KingGudu</author><pubDate>Mon, 08 Oct 2007 08:36:28 GMT</pubDate><guid isPermaLink="false">Source code checked in 20071008083628A</guid></item><item><title>UPDATED RELEASE: QueryFramework v0.2</title><link>http://www.codeplex.com/queryframework/Release/ProjectReleases.aspx?ReleaseId=7496</link><description>Bugfixes and improvements from v0.1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*New features*&lt;br /&gt;* Added Insert method to the Order collection.</description><author></author><pubDate>Mon, 08 Oct 2007 07:40:03 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: QueryFramework v0.2 20071008074003A</guid></item><item><title>UPDATED RELEASE: QueryFramework v0.2</title><link>http://www.codeplex.com/queryframework/Release/ProjectReleases.aspx?ReleaseId=7496</link><description>Bugfixes and improvements from v0.1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*New features*&lt;br /&gt;* Added Insert method to the Order collection.</description><author></author><pubDate>Mon, 08 Oct 2007 07:39:48 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: QueryFramework v0.2 20071008073948A</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/queryframework/SourceControl/ListDownloadableCommits.aspx</link><description>Added Insert Method to the Order Collection</description><author>KingGudu</author><pubDate>Mon, 08 Oct 2007 07:36:05 GMT</pubDate><guid isPermaLink="false">Source code checked in 20071008073605A</guid></item><item><title>RELEASED: QueryFramework v0.1 (Oct 05, 2007)</title><link>http://www.codeplex.com/queryframework/Release/ProjectReleases.aspx?ReleaseId=7495</link><description>*Introduction*&lt;br /&gt;QueryFramework is created with four main goals in mind:&lt;br /&gt;&lt;br /&gt;   1. Create sql queries in an object oriented way.&lt;br /&gt;   2. Create sql queries with independence of the database dialect used.&lt;br /&gt;   3. Execute queries with abstraction of the database used.&lt;br /&gt;   4. Create a simple implementation of the ActiveRecord pattern with a lot of flexibility to mix simple save/update/load objects with common sql queries.&lt;br /&gt;&lt;br /&gt;*First release of QueryFramework*&lt;br /&gt;This is the first release of the QueryFramework but we have been using it already for months so it's quite stable.&lt;br /&gt;Any comments and new features are welcome.&lt;br /&gt;&lt;br /&gt;For examples and documentation, visit QueryFramework home page:&lt;br /&gt;[url:http://www.codeplex.com/queryframework]&lt;br /&gt;&lt;br /&gt;Yours,&lt;br /&gt;&lt;br /&gt;Richard Chamorro&lt;br /&gt;QueryFramework coodinator&lt;br /&gt;[url:http://www.avanzis.com]</description><author></author><pubDate>Fri, 05 Oct 2007 08:58:10 GMT</pubDate><guid isPermaLink="false">RELEASED: QueryFramework v0.1 (Oct 05, 2007) 20071005085810A</guid></item><item><title>UPDATED RELEASE: QueryFramework v0.1 (oct 05, 2007)</title><link>http://www.codeplex.com/queryframework/Release/ProjectReleases.aspx?ReleaseId=7495</link><description>*Introduction*&lt;br /&gt;QueryFramework is created with four main goals in mind:&lt;br /&gt;&lt;br /&gt;   1. Create sql queries in an object oriented way.&lt;br /&gt;   2. Create sql queries with independence of the database dialect used.&lt;br /&gt;   3. Execute queries with abstraction of the database used.&lt;br /&gt;   4. Create a simple implementation of the ActiveRecord pattern with a lot of flexibility to mix simple save/update/load objects with common sql queries.&lt;br /&gt;&lt;br /&gt;*First release of QueryFramework*&lt;br /&gt;This is the first release of the QueryFramework but we have been using it already for months so it's quite stable.&lt;br /&gt;Any comments and new features are welcome.&lt;br /&gt;&lt;br /&gt;For examples and documentation, visit QueryFramework home page:&lt;br /&gt;[url:http://www.codeplex.com/queryframework]&lt;br /&gt;&lt;br /&gt;Yours,&lt;br /&gt;&lt;br /&gt;Richard Chamorro&lt;br /&gt;QueryFramework coodinator&lt;br /&gt;[url:http://www.avanzis.com]</description><author></author><pubDate>Fri, 05 Oct 2007 08:58:10 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: QueryFramework v0.1 (oct 05, 2007) 20071005085810A</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/queryframework/Wiki/View.aspx?title=Home&amp;version=22</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;A simple framework for building sql statements in an object oriented way, executing sql statements with database independency and providing simple object persistence.
&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;This framework is created with four main goals in mind: &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Create sql queries in an object oriented way.&lt;/li&gt;&lt;li&gt;Create sql queries with independence of the database dialect used.&lt;/li&gt;&lt;li&gt;Execute queries with independence of the database used.&lt;/li&gt;&lt;li&gt;Create a simple implementation of the ActiveRecord pattern with a lot of flexibility to mix simple save/update/load objects with common sql queries.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;b&gt;Main components&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;&lt;a href="http://www.codeplex.com/queryframework/Wiki/View.aspx?title=QueryFramework&amp;amp;referringTitle=Home"&gt;QueryFramework&lt;/a&gt;&lt;/b&gt; - Configures QueryFramework.&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;a href="http://www.codeplex.com/queryframework/Wiki/View.aspx?title=QueryBuilder&amp;amp;referringTitle=Home"&gt;QueryBuilder&lt;/a&gt;&lt;/b&gt; - Helps you build sql quieries in an object oriented way that will work in any database.&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;a href="http://www.codeplex.com/queryframework/Wiki/View.aspx?title=QueryExecutor&amp;amp;referringTitle=Home"&gt;QueryExecutor&lt;/a&gt;&lt;/b&gt; - Gives you a layer of abstraction to execute queries against any database.&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;a href="http://www.codeplex.com/queryframework/Wiki/View.aspx?title=QueryObjects&amp;amp;referringTitle=Home"&gt;QueryObjects&lt;/a&gt;&lt;/b&gt; - A simple implementation of the ActiveRecord pattern but with a lot of flexibility.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;b&gt;Where to go from here&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;&lt;a href="http://www.codeplex.com/queryframework/Wiki/View.aspx?title=Tutorial&amp;amp;referringTitle=Home"&gt;Tutorial&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;a href="http://www.codeplex.com/queryframework/Wiki/View.aspx?title=Examples&amp;amp;referringTitle=Home"&gt;Examples&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;b&gt;What can you do with the QueryFramework?&lt;/b&gt;&lt;br /&gt; &lt;br /&gt;Here are some simple examples using QueryFramework, please visite &lt;a href="http://www.codeplex.com/queryframework/Wiki/View.aspx?title=Examples&amp;amp;referringTitle=Home"&gt;Examples&lt;/a&gt; for more code snippets.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;QueryBuilder example&lt;/b&gt;&lt;br /&gt;Here is a simple example of what you can do with QueryBuilder:&lt;br /&gt; &lt;br /&gt;&lt;pre&gt;
SelectBuilder sb = new SelectBuilder();
sb.Select.Fields.Add(&amp;quot;ArticleId&amp;quot;);
sb.Select.Fields.Add(&amp;quot;Name&amp;quot;);
sb.From.TableName = &amp;quot;Articles&amp;quot;;
sb.Where.Filters.Add(&amp;quot;Active = 1&amp;quot;);
 
Console.Write(sb.ToString());
 
// output: &amp;quot;SELECT ArticleId,Name FROM [Articles] WHERE (Active = 1)&amp;quot;;
&lt;/pre&gt; &lt;br /&gt;Visit &lt;a href="http://www.codeplex.com/queryframework/Wiki/View.aspx?title=QueryBuilder%20Examples&amp;amp;referringTitle=Home"&gt;QueryBuilder Examples&lt;/a&gt; to see more advanced uses of QueryBuilder.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;QueryExecutor example&lt;/b&gt;&lt;br /&gt;Here is a simple example of what you can do with QueryExecutor:&lt;br /&gt;&lt;pre&gt;
DataTable articles = Database.ExecuteDataTable(connectionString, CommandType.Text, &amp;quot;SELECT * FROM Articles&amp;quot;);
&lt;/pre&gt;&lt;b&gt;QueryObject example&lt;/b&gt;&lt;br /&gt;Here is a simple example of what you can do with QueryObjects:&lt;br /&gt; &lt;br /&gt;First you have to decorate class to persist with some attributes.&lt;br /&gt; &lt;br /&gt;&lt;pre&gt;
    [ActiveRecord(&amp;quot;Referees&amp;quot;)]
    public class Referee : ActiveRecordBase&amp;lt;Referee&amp;gt;
    {
        private String code;
        private String name;
 
        public Referee() : base()
        {
        }
 
        public Referee(Session session)
            : base(session)
        {
        }
        
 
        [PrimaryKey(PrimaryKeyType.Assigned)]
        public String Code
        {
            get { return code; }
            set { code = value; }
        }
 
        [Property]
        public String Name
        {
            get { return name; }
            set { name = value; }
        }
    }
&lt;/pre&gt; &lt;br /&gt;Then you can load, save and update it&lt;br /&gt; &lt;br /&gt;&lt;pre&gt;
Referee savedReferee = new Referee();
savedReferee.Code = &amp;quot;REF&amp;quot;;
savedReferee.Name = &amp;quot;Referee REF&amp;quot;;
savedReferee.Save();
 
Referee loadedReferee = new Referee();            
loadedReferee .Load(&amp;quot;XXX&amp;quot;);
Console.Write(loadedReferee.Name);
// output: Referee REF;   
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Contributions&lt;/b&gt;&lt;br /&gt;All contributions are welcome, specially fixing bugs, documenting, adding support for new databases and suggesting new features.   &lt;br /&gt;
&lt;/div&gt;</description><author>KingGudu</author><pubDate>Fri, 05 Oct 2007 08:56:36 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20071005085636A</guid></item><item><title>CREATED RELEASE: QueryFramework v0.1 (oct 05, 2007)</title><link>http://www.codeplex.com/queryframework/Release/ProjectReleases.aspx?ReleaseId=7495</link><description>*Introduction*&lt;br /&gt;QueryFramework is created with four main goals in mind:&lt;br /&gt;&lt;br /&gt;   1. Create sql queries in an object oriented way.&lt;br /&gt;   2. Create sql queries with independence of the database dialect used.&lt;br /&gt;   3. Execute queries with abstraction of the database used.&lt;br /&gt;   4. Create a simple implementation of the ActiveRecord pattern with a lot of flexibility to mix simple save/update/load objects with common sql queries.&lt;br /&gt;&lt;br /&gt;*First release of QueryFramework*&lt;br /&gt;This is the first release of the QueryFramework but we have been using it already for months so it's quite stable.&lt;br /&gt;Any comments and new features are welcome.&lt;br /&gt;&lt;br /&gt;Richard Chamorro&lt;br /&gt;QueryFramework coodinator&lt;br /&gt;[url:http://www.avanzis.com]&lt;br /&gt;</description><author></author><pubDate>Fri, 05 Oct 2007 08:55:19 GMT</pubDate><guid isPermaLink="false">CREATED RELEASE: QueryFramework v0.1 (oct 05, 2007) 20071005085519A</guid></item><item><title>UPDATED WIKI: Examples</title><link>http://www.codeplex.com/queryframework/Wiki/View.aspx?title=Examples&amp;version=1</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;QueryFramework Examples&lt;/b&gt;&lt;br /&gt; &lt;br /&gt;Looking at someone else code is a good way to learn how something works so we will put here many examples.&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Configuration Examples&lt;/li&gt;&lt;li&gt;QueryBuilder Examples&lt;/li&gt;&lt;li&gt;QueryExecutor Examples&lt;/li&gt;&lt;li&gt;QueryObjects Examples&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>KingGudu</author><pubDate>Fri, 05 Oct 2007 08:52:55 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Examples 20071005085255A</guid></item></channel></rss>