<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>ODX.NET - Distributed ORM Framework</title><link>http://www.codeplex.com/odx/Project/ProjectRss.aspx</link><description>Open Dataset eXtensions is a quite tiny but extremely powerful ORM framework. It utilizes all the power of ADO.NET and adds the natural ease of OOP. ODX delivers on-the-fly proxy generation, remoti...</description><item><title>Source code checked in</title><link>http://www.codeplex.com/odx/SourceControl/ListDownloadableCommits.aspx</link><description></description><author>odx</author><pubDate>Sat, 29 Mar 2008 07:25:16 GMT</pubDate><guid isPermaLink="false">Source code checked in 20080329072516A</guid></item><item><title>NEW POST: The show must go on...</title><link>http://www.codeplex.com/odx/Thread/View.aspx?ThreadId=21959</link><description>&lt;div class="wikidoc"&gt;
Hi &lt;br /&gt; &lt;br /&gt;I have been using various versions of Microsoft Basic for over 23 years now, from Microsoft Extended Color Basic on an old 16KB Radio Shack coco, up to the latest VB.NET versions. An interest of mine has been RAD (Rapid application development ) tools, such as Object Relational Mapping tools and Object Control Mapping tools. I have found ODX to be the single most useful RAD tool yet encountered. &lt;br /&gt; &lt;br /&gt;Microsoft's existing RAD attempts (being DataSet focused) fail dismally in an Enterprise level Multi-Tier environment where the core focus should be on building Business Layer Classes and not DataSets. This is where I have found ODX to be so powerful becuase the DataSet handling is performed seamlessly in the background, and the developer can get on with the job of building business rules in classes.&lt;br /&gt; &lt;br /&gt;There seemed to be a lot of initial activity on this project, with work done almost every day, but I am sad to that the last sourse check in was about 2 months ago. ODX, are you taking a well deserved holiday, or focussing on something else now?&lt;br /&gt; &lt;br /&gt;I don't really use the remoting, but use ODX on a server with ASP.NET as the front end with the Middle-Tier Business Layers built into DLL's talking to a SQL 2005 database via ODX. &lt;br /&gt; &lt;br /&gt;Please keep up the good work....&lt;br /&gt;John&lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>johndupreez</author><pubDate>Tue, 12 Feb 2008 08:16:05 GMT</pubDate><guid isPermaLink="false">NEW POST: The show must go on... 20080212081605A</guid></item><item><title>NEW POST: Save in SQL 2005</title><link>http://www.codeplex.com/odx/Thread/View.aspx?ThreadId=21262</link><description>&lt;div class="wikidoc"&gt;
Hi,&lt;br /&gt; &lt;br /&gt;I'm trying to use the ODX, but I'm facing some problems with the save.&lt;br /&gt;I have a table in a SQL Server 2005 database with an Identity field. (which never can be updated).&lt;br /&gt;Now I created the table Class (as shown in examples) and I can get the data from the database. No problem.&lt;br /&gt;I use following code:&lt;br /&gt; &lt;br /&gt;            string conString = ConfigurationManager.ConnectionStrings&lt;a href="http://www.codeplex.com/odx/Wiki/View.aspx?title=%22DefaultBusinessConnectionString%22"&gt;&amp;quot;DefaultBusinessConnectionString&amp;quot;&lt;/a&gt;.ToString();&lt;br /&gt;            DbDataProvider provider = new DbDataProvider(System.Data.SqlClient.SqlClientFactory.Instance, conString);&lt;br /&gt;            s = new Session(provider);&lt;br /&gt;            s.RegisterAssembly(Assembly.GetExecutingAssembly());&lt;br /&gt;            s.Prepare();&lt;br /&gt; &lt;br /&gt;Then on my form, i have a datagridview which is binded as followed:&lt;br /&gt;           dataGridView1.DataSource = s.All&amp;lt;ImportAccount&amp;gt;();&lt;br /&gt; &lt;br /&gt;No problem so far.&lt;br /&gt;But now I change some fields, not the identity field and want to save this to the database:&lt;br /&gt;            s.Save(SaveMode.Complete);&lt;br /&gt; &lt;br /&gt;Then I receive an error from SQL Server that it is not possible to update the Identity field. &lt;br /&gt; &lt;br /&gt;I know that, but how can I save my changes to database ?????&lt;br /&gt;I have tried the different save modes, but it does not work. &lt;br /&gt;
&lt;/div&gt;</description><author>RonyMan</author><pubDate>Wed, 30 Jan 2008 09:32:04 GMT</pubDate><guid isPermaLink="false">NEW POST: Save in SQL 2005 20080130093204A</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/odx/SourceControl/ListDownloadableCommits.aspx</link><description></description><author>odx</author><pubDate>Sat, 01 Dec 2007 14:08:04 GMT</pubDate><guid isPermaLink="false">Source code checked in 20071201020804P</guid></item><item><title>CREATED ISSUE: Upgrading database : null reference</title><link>http://www.codeplex.com/odx/WorkItem/View.aspx?WorkItemId=8903</link><description>Hello,&lt;br /&gt;&lt;br /&gt;when I try to upgrade database and a table gets added, a null reference error gets generated. The problem probably lies in ODX trying to enumerate constraints of old table to upgrade it but no old tables are present for a newly added one. I solved this error by using this code in DbDataProvider.cs &amp;#40;line &amp;#35;502&amp;#41;&amp;#58;&lt;br /&gt;&lt;br /&gt;                    foreach &amp;#40;Constraint c in dt.Constraints&amp;#41;&lt;br /&gt;                        if &amp;#40;old_dt &amp;#33;&amp;#61; null&amp;#41; &amp;#47;&amp;#47; this is the key &amp;#33;&lt;br /&gt;                            if &amp;#40;&amp;#33;old_dt.Constraints.Contains&amp;#40;c.ConstraintName&amp;#41;&amp;#41;&lt;br /&gt;                                CreateConstraint&amp;#40;c, conn&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;This works for me now.&lt;br /&gt;&lt;br /&gt;Hope this helps.&lt;br /&gt;</description><author>TBPrince</author><pubDate>Thu, 29 Nov 2007 12:11:30 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: Upgrading database : null reference 20071129121130P</guid></item><item><title>COMMENTED ISSUE: SQL Error while creating tables in a SQL Server 2005 database</title><link>http://www.codeplex.com/odx/WorkItem/View.aspx?WorkItemId=8818</link><description>Hello,&lt;br /&gt;&lt;br /&gt;when creating tables via &amp;#34;PrepareDatabase&amp;#34; method, a SQL Exception gets generated&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#34;Cannot define PRIMARY KEY constraint on nullable column in table &amp;#39;x&amp;#39;.&lt;br /&gt;Could not create constraint. See previous errors. &amp;#34;&lt;br /&gt;&lt;br /&gt;It looks like that when ODX creates a table it defines ID field as NULLABLE, which is not allowed if such field has to be set as primary key.&lt;br /&gt;&lt;br /&gt;Hope this helps.&lt;br /&gt;Comments: ** Comment from web user: TBPrince ** &lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;this is code I use now. This seems to work for me&amp;#58;&lt;/p&gt;&lt;p&gt;        private static void CreateTable&amp;#40;DataTable dt, DbTypeMapper mapper, DbConnection conn&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            List&amp;#60;string&amp;#62; columns &amp;#61; new List&amp;#60;string&amp;#62;&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            DataColumn&amp;#91;&amp;#93; PrimaryKeys &amp;#61; dt.PrimaryKey&amp;#59;&lt;br /&gt;            string NotNullModifier &amp;#61; string.Empty&amp;#59;&lt;br /&gt;            foreach &amp;#40;DataColumn dc in dt.Columns&amp;#41;&lt;br /&gt;            &amp;#123;&lt;br /&gt;                NotNullModifier &amp;#61; string.Empty&amp;#59;&lt;br /&gt;                foreach &amp;#40;DataColumn KeyCol in PrimaryKeys&amp;#41;&lt;br /&gt;                    if &amp;#40;KeyCol.Equals&amp;#40;dc&amp;#41;&amp;#41;&lt;br /&gt;                    &amp;#123;&lt;br /&gt;                        NotNullModifier &amp;#61; &amp;#34; NOT NULL&amp;#34;&amp;#59;&lt;br /&gt;                    &amp;#125;&lt;br /&gt;                columns.Add&amp;#40;string.Format&amp;#40;&amp;#34;&amp;#123;0&amp;#125; &amp;#123;1&amp;#125;&amp;#34; &amp;#43; NotNullModifier, dc.ColumnName, GetDBType&amp;#40;dc, mapper&amp;#41;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;            string sql &amp;#61; &amp;#34;CREATE TABLE &amp;#34; &amp;#43; dt.TableName &amp;#43; &amp;#34;&amp;#40;&amp;#34; &amp;#43; string.Join&amp;#40;&amp;#34;, &amp;#34;, columns.ToArray&amp;#40;&amp;#41;&amp;#41; &amp;#43; &amp;#34;&amp;#41;&amp;#34;&amp;#59;&lt;/p&gt;&lt;p&gt;            DbCommand cmd &amp;#61; conn.CreateCommand&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            cmd.CommandText &amp;#61; sql&amp;#59;&lt;br /&gt;            cmd.ExecuteNonQuery&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;        &amp;#125;&lt;/p&gt;&lt;p&gt;Now tables got properly created. However, PrepareDatabase now fails because it tries to create db_schema.xml file inside default folder, which is set to random locations according to your project.&lt;/p&gt;&lt;p&gt;Hope this helps.&lt;/p&gt;</description><author>TBPrince</author><pubDate>Mon, 26 Nov 2007 01:03:59 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: SQL Error while creating tables in a SQL Server 2005 database 20071126010359A</guid></item><item><title>CREATED ISSUE: SQL Error while creating tables in a SQL Server 2005 database</title><link>http://www.codeplex.com/odx/WorkItem/View.aspx?WorkItemId=8818</link><description>Hello,&lt;br /&gt;&lt;br /&gt;when creating tables via &amp;#34;PrepareDatabase&amp;#34; method, a SQL Exception gets generated&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#34;Cannot define PRIMARY KEY constraint on nullable column in table &amp;#39;x&amp;#39;.&lt;br /&gt;Could not create constraint. See previous errors. &amp;#34;&lt;br /&gt;&lt;br /&gt;It looks like that when ODX creates a table it defines ID field as NULLABLE, which is not allowed if such field has to be set as primary key.&lt;br /&gt;&lt;br /&gt;Hope this helps.&lt;br /&gt;</description><author>TBPrince</author><pubDate>Mon, 26 Nov 2007 00:23:44 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: SQL Error while creating tables in a SQL Server 2005 database 20071126122344A</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/odx/SourceControl/ListDownloadableCommits.aspx</link><description></description><author>odx</author><pubDate>Tue, 20 Nov 2007 04:28:40 GMT</pubDate><guid isPermaLink="false">Source code checked in 20071120042840A</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/odx/SourceControl/ListDownloadableCommits.aspx</link><description></description><author>odx</author><pubDate>Mon, 19 Nov 2007 21:42:29 GMT</pubDate><guid isPermaLink="false">Source code checked in 20071119094229P</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/odx/SourceControl/ListDownloadableCommits.aspx</link><description></description><author>odx</author><pubDate>Mon, 19 Nov 2007 20:59:21 GMT</pubDate><guid isPermaLink="false">Source code checked in 20071119085921P</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/odx/SourceControl/ListDownloadableCommits.aspx</link><description>Predefined proxy class to use remote datasource as web service</description><author>odx</author><pubDate>Thu, 15 Nov 2007 22:15:14 GMT</pubDate><guid isPermaLink="false">Source code checked in 20071115101514P</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/odx/SourceControl/ListDownloadableCommits.aspx</link><description>ODX mobile. First draft. Xml data source has been ported. Sql CE is next one.</description><author>odx</author><pubDate>Thu, 15 Nov 2007 21:03:32 GMT</pubDate><guid isPermaLink="false">Source code checked in 20071115090332P</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/odx/SourceControl/ListDownloadableCommits.aspx</link><description></description><author>odx</author><pubDate>Thu, 15 Nov 2007 19:19:04 GMT</pubDate><guid isPermaLink="false">Source code checked in 20071115071904P</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/odx/SourceControl/ListDownloadableCommits.aspx</link><description></description><author>odx</author><pubDate>Thu, 15 Nov 2007 18:54:59 GMT</pubDate><guid isPermaLink="false">Source code checked in 20071115065459P</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/odx/SourceControl/ListDownloadableCommits.aspx</link><description></description><author>odx</author><pubDate>Thu, 15 Nov 2007 18:46:11 GMT</pubDate><guid isPermaLink="false">Source code checked in 20071115064611P</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/odx/SourceControl/ListDownloadableCommits.aspx</link><description></description><author>odx</author><pubDate>Thu, 15 Nov 2007 18:14:39 GMT</pubDate><guid isPermaLink="false">Source code checked in 20071115061439P</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/odx/SourceControl/ListDownloadableCommits.aspx</link><description></description><author>odx</author><pubDate>Thu, 15 Nov 2007 18:10:16 GMT</pubDate><guid isPermaLink="false">Source code checked in 20071115061016P</guid></item><item><title>CREATED FEATURE: Parent/Child objects Prefetch</title><link>http://www.codeplex.com/odx/WorkItem/View.aspx?WorkItemId=8530</link><description>ODX should be configurable for prefetching data. For example, if I select a list of books, I may want to iterate authors then. And I want to load all of them in single request, not one by one at each Author property access.&lt;br /&gt;</description><author>odx</author><pubDate>Tue, 13 Nov 2007 06:03:06 GMT</pubDate><guid isPermaLink="false">CREATED FEATURE: Parent/Child objects Prefetch 20071113060306A</guid></item><item><title>CLOSED ISSUE: Error when using GUIDs for fields types</title><link>http://www.codeplex.com/odx/WorkItem/View.aspx?WorkItemId=7055</link><description>Hello,&lt;br /&gt;&lt;br /&gt;evaluating your library and first impressions are very good.&lt;br /&gt;&lt;br /&gt;I have a problem though&amp;#58; when using a GUID for a field &amp;#40;and hence, as type in Entity definition&amp;#41;, BuildDataSet&amp;#40;&amp;#41; will fail with exception&amp;#58; &amp;#34;There is no cast defenition&amp;#33;&amp;#33;&amp;#33;&amp;#34;. GUIDs are very commonly used so I think it should be fixed.&lt;br /&gt;&lt;br /&gt;Keep up the good work&amp;#33;&lt;br /&gt;</description><author>odx</author><pubDate>Mon, 12 Nov 2007 18:56:15 GMT</pubDate><guid isPermaLink="false">CLOSED ISSUE: Error when using GUIDs for fields types 20071112065615P</guid></item><item><title>CLOSED ISSUE: Problem with SQL Compact Edition</title><link>http://www.codeplex.com/odx/WorkItem/View.aspx?WorkItemId=7057</link><description>Hello,&lt;br /&gt;&lt;br /&gt;when trying to connect to a SQL CE database using SqlCeProviderFactory an exception is being generated when using an instruction like this&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#91;VB.NET&amp;#93;&lt;br /&gt;OLEDBSession.Data &amp;#61; New DbDataProvider&amp;#40; _&lt;br /&gt;                OLEDBSession.Schema.Clone&amp;#40;&amp;#41;, _&lt;br /&gt;                SqlCeProviderFactory.Instance, _&lt;br /&gt;                &amp;#34;Data source&amp;#61;testdb.sdf&amp;#59;Encrypt&amp;#61;&amp;#39;no&amp;#39;&amp;#34;&amp;#41;&lt;br /&gt;&lt;br /&gt;Exception test is &amp;#34;SchemaSeparator&amp;#34; and no inner exception are present.&lt;br /&gt;</description><author>odx</author><pubDate>Mon, 12 Nov 2007 18:55:09 GMT</pubDate><guid isPermaLink="false">CLOSED ISSUE: Problem with SQL Compact Edition 20071112065509P</guid></item></channel></rss>