<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>CSLA .NET Contrib</title><link>http://cslacontrib.codeplex.com/Project/ProjectRss.aspx</link><description>This project contains public contributions around Rockford Lhotka&amp;#39;s CSLA .NET framework &amp;#40;www.lhotka.net&amp;#47;cslanet&amp;#41;, including code-generation templates, add-on frameworks, utilities and tools.</description><item><title>Commented Issue: EditableRootList - AllowNew</title><link>http://cslacontrib.codeplex.com/WorkItem/View.aspx?WorkItemId=22876</link><description>When binding EditableRootList to the .Net DataGridView new rows cannot be added because although AddNewCore is implemented, the AllowNew property is not set in the list&amp;#39;s constructor.&lt;br /&gt;&lt;br /&gt;Proposed solution is to modify the list&amp;#39;s constructor&amp;#58;&lt;br /&gt;&lt;br /&gt;        &amp;#35;region Factory Methods&lt;br /&gt;        private CustomerSubCategoryEdList&amp;#40;&amp;#41;&lt;br /&gt;        &amp;#123; &amp;#47;&amp;#42; require use of factory method &amp;#42;&amp;#47;&lt;br /&gt;            this.AllowNew &amp;#61; true&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt; or in CodeSmith language&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i, true&amp;#41;&amp;#37;&amp;#62;&amp;#35;region Factory Methods&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#41;&amp;#37;&amp;#62;private &amp;#60;&amp;#37;&amp;#61;objInfo.Name&amp;#37;&amp;#62;&amp;#40;&amp;#41;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#43;&amp;#43;&amp;#41;&amp;#37;&amp;#62;&amp;#123;  &lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#41;&amp;#37;&amp;#62;&amp;#47;&amp;#42; require use of factory method &amp;#42;&amp;#47;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#41;&amp;#37;&amp;#62;this.AllowNew &amp;#61; true&amp;#59;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i--&amp;#41;&amp;#37;&amp;#62;&amp;#125;&lt;br /&gt;Comments: ** Comment from web user: Tom_W ** &lt;p&gt;Apologies, last line of the CS code should read&amp;#58;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;--i&amp;#41;&amp;#37;&amp;#62;&amp;#125; &lt;/p&gt;</description><author>Tom_W</author><pubDate>Tue, 02 Jun 2009 14:15:52 GMT</pubDate><guid isPermaLink="false">Commented Issue: EditableRootList - AllowNew 20090602021552P</guid></item><item><title>Created Issue: EditableRootList - AllowNew</title><link>http://cslacontrib.codeplex.com/WorkItem/View.aspx?WorkItemId=22876</link><description>When binding EditableRootList to the .Net DataGridView new rows cannot be added because although AddNewCore is implemented, the AllowNew property is not set in the list&amp;#39;s constructor.&lt;br /&gt;&lt;br /&gt;Proposed solution is to modify the list&amp;#39;s constructor&amp;#58;&lt;br /&gt;&lt;br /&gt;        &amp;#35;region Factory Methods&lt;br /&gt;        private CustomerSubCategoryEdList&amp;#40;&amp;#41;&lt;br /&gt;        &amp;#123; &amp;#47;&amp;#42; require use of factory method &amp;#42;&amp;#47;&lt;br /&gt;            this.AllowNew &amp;#61; true&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt; or in CodeSmith language&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i, true&amp;#41;&amp;#37;&amp;#62;&amp;#35;region Factory Methods&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#41;&amp;#37;&amp;#62;private &amp;#60;&amp;#37;&amp;#61;objInfo.Name&amp;#37;&amp;#62;&amp;#40;&amp;#41;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#43;&amp;#43;&amp;#41;&amp;#37;&amp;#62;&amp;#123;  &lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#41;&amp;#37;&amp;#62;&amp;#47;&amp;#42; require use of factory method &amp;#42;&amp;#47;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#41;&amp;#37;&amp;#62;this.AllowNew &amp;#61; true&amp;#59;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i--&amp;#41;&amp;#37;&amp;#62;&amp;#125;&lt;br /&gt;</description><author>Tom_W</author><pubDate>Mon, 01 Jun 2009 19:00:56 GMT</pubDate><guid isPermaLink="false">Created Issue: EditableRootList - AllowNew 20090601070056P</guid></item><item><title>Created Issue: Is CSLA 3.6 CodeSmith generation dormient or missing types?</title><link>http://cslacontrib.codeplex.com/WorkItem/View.aspx?WorkItemId=22731</link><description>Shouldn&amp;#39;t there be a few more stereo type templates for CodeSmith&amp;#63; I don&amp;#39;t see switchable, command or name value list. Has CSLA Contrib work gone to sleep on creating CodeSmith templates using CSLA 3.6 objects&amp;#63; I appreciate all the work that &amp;#34;RickySupit&amp;#34; has already done. I hope my message here is not offending anyone or the dismissing the hard work that has already been accomplished.&lt;br /&gt;&lt;br /&gt;I have seen that Code Smith 5.1 has a developer redoing all the CSLA 3.6 templates in the paid version of CodeSmith. I think the community here has a lot experience that shouldn&amp;#39;t be lost.&lt;br /&gt;</description><author>MADCookie</author><pubDate>Tue, 26 May 2009 16:23:49 GMT</pubDate><guid isPermaLink="false">Created Issue: Is CSLA 3.6 CodeSmith generation dormient or missing types? 20090526042349P</guid></item><item><title>Created Issue: Legacy Database has columns with "_" Underscores</title><link>http://www.codeplex.com/CSLAcontrib/WorkItem/View.aspx?WorkItemId=21375</link><description>Hi All,&lt;br /&gt;&lt;br /&gt;The generated code does not carry the underscores through. Any thoughts on how to deal with this&amp;#63;&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Ed&lt;br /&gt;</description><author>ejlatstl</author><pubDate>Tue, 24 Feb 2009 20:30:56 GMT</pubDate><guid isPermaLink="false">Created Issue: Legacy Database has columns with "_" Underscores 20090224083056P</guid></item><item><title>Created Issue: Possible mismatch between editable and read-only classes</title><link>http://www.codeplex.com/CSLAcontrib/WorkItem/View.aspx?WorkItemId=21321</link><description>Hi,&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve noticed that when you create a read-only class for a given table, if the column in nullable in the DB, the generated CLR type will also be a nullable, for example int&amp;#63;&lt;br /&gt;&lt;br /&gt;On the other hand, the editable classes will not generate a CLR nullable type.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve narrowed this difference to the use of &amp;#34;prop.Type&amp;#34; instead of &amp;#34;prop.NativeType&amp;#34; on lines 12 &amp;#38; 24 of PropertiesMethods.inc. On the other hand, ReadOnlyProperties.inc does use NativeType.&lt;br /&gt;&lt;br /&gt;Shouldn&amp;#39;t we use NativeType for editable objects too &amp;#63;&lt;br /&gt;&lt;br /&gt;Regards.&lt;br /&gt;</description><author>mrlucmorin</author><pubDate>Mon, 23 Feb 2009 14:10:46 GMT</pubDate><guid isPermaLink="false">Created Issue: Possible mismatch between editable and read-only classes 20090223021046P</guid></item><item><title>Created Issue: DataPortalUpdate.inc possible error</title><link>http://www.codeplex.com/CSLAcontrib/WorkItem/View.aspx?WorkItemId=21313</link><description>In the DataPortalUpdate.inc file, the code for both DataPortal_Insert&amp;#40;&amp;#41; and DataPortal_Update&amp;#40;&amp;#41; is generated. The thing is that in both cases, the treatment of child objects is different.&lt;br /&gt;&lt;br /&gt;Here&amp;#8217;s how DataPortal_Insert&amp;#40;&amp;#41; handles it&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#41;&amp;#37;&amp;#62;&amp;#47;&amp;#47;Update Child object&amp;#40;s&amp;#41;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#125;&amp;#37;&amp;#62;&lt;br /&gt;&amp;#60;&amp;#37;  foreach &amp;#40;PropertyInfo prop in objInfo.ChildCollection&amp;#41; &amp;#123; &amp;#37;&amp;#62;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#41;&amp;#37;&amp;#62;DataPortal.UpdateChild&amp;#40;ReadProperty&amp;#40;&amp;#60;&amp;#37;&amp;#61;prop.PropertyInfoName&amp;#37;&amp;#62;&amp;#41;, this&amp;#41;&amp;#59;&lt;br /&gt;&amp;#60;&amp;#37; &amp;#125; &amp;#37;&amp;#62;&lt;br /&gt;&lt;br /&gt;And here&amp;#8217;s how DataPortal_Update&amp;#40;&amp;#41; handles it&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#60;&amp;#37;if&amp;#40;objInfo.ChildCollection.Count&amp;#62;0&amp;#41; &amp;#123;&amp;#37;&amp;#62;&lt;br /&gt;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#41;&amp;#37;&amp;#62;&amp;#47;&amp;#47;Insert Child object&amp;#40;s&amp;#41;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#41;&amp;#37;&amp;#62;FieldManager.UpdateChildren&amp;#40;this&amp;#41;&amp;#59;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#125;&amp;#37;&amp;#62;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So, in one case we call DataPortal.Update&amp;#40;&amp;#41; for each child property, and in the other one we rely on  FieldManager.UpdateChildern&amp;#40;&amp;#41; to do the job.&lt;br /&gt;&lt;br /&gt;The same observation also applies to the ChildUpdate.inc file.&lt;br /&gt;&lt;br /&gt;In his book, Rocky seems to advocate the use of FieldManager.UpdateChildren&amp;#40;&amp;#41; &amp;#40;see p. 421 in his 2008 c&amp;#35; book&amp;#41;. Is there a reason to use DataPortal.UpdateChild&amp;#40;&amp;#41; instead &amp;#63;&lt;br /&gt;</description><author>mrlucmorin</author><pubDate>Sun, 22 Feb 2009 20:07:49 GMT</pubDate><guid isPermaLink="false">Created Issue: DataPortalUpdate.inc possible error 20090222080749P</guid></item><item><title>Created Issue: Child of Child template error</title><link>http://www.codeplex.com/CSLAcontrib/WorkItem/View.aspx?WorkItemId=21267</link><description>The situation seems to arise when Child objects have Child themselves.&lt;br /&gt;&lt;br /&gt;On line 22 of ChildDelete.inc, you reference the &amp;#8220;data&amp;#8221; variable like so&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#41;&amp;#37;&amp;#62;DataPortal.UpdateChild&amp;#40;ReadProperty&amp;#40;&amp;#60;&amp;#37;&amp;#61;prop.PropertyInfoName&amp;#37;&amp;#62;&amp;#41;, data.&amp;#60;&amp;#37;&amp;#61;prop.DbRefTableName&amp;#37;&amp;#62;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;The problem is that at that point, the &amp;#8220;data&amp;#8221; variable is not yet defined. Here are the surrounding lines from ChildDelete.inc&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#60;&amp;#37;if&amp;#40;objInfo.ChildCollection.Count&amp;#62;0&amp;#41; &amp;#123;&amp;#37;&amp;#62;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#41;&amp;#37;&amp;#62;&amp;#47;&amp;#47;Delete child object&amp;#40;s&amp;#41;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#125;&amp;#37;&amp;#62;&lt;br /&gt;&amp;#60;&amp;#37;  foreach &amp;#40;PropertyInfo prop in objInfo.ChildCollection&amp;#41; &amp;#123; &amp;#37;&amp;#62;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#41;&amp;#37;&amp;#62;&amp;#60;&amp;#37;&amp;#61;prop.Name&amp;#37;&amp;#62;.Clear&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#41;&amp;#37;&amp;#62;DataPortal.UpdateChild&amp;#40;ReadProperty&amp;#40;&amp;#60;&amp;#37;&amp;#61;prop.PropertyInfoName&amp;#37;&amp;#62;&amp;#41;, data.&amp;#60;&amp;#37;&amp;#61;prop.DbRefTableName&amp;#37;&amp;#62;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#60;&amp;#37; &amp;#125; &amp;#37;&amp;#62;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#41;&amp;#37;&amp;#62;var data &amp;#61; new &amp;#60;&amp;#37;&amp;#61;objInfo.DalNamespace&amp;#37;&amp;#62;.&amp;#60;&amp;#37;&amp;#61;objInfo.EntityName&amp;#37;&amp;#62;&amp;#40;&amp;#41;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So we see that within the &amp;#8220;objInfo.ChildCollection&amp;#8221; iteration, we generate &amp;#8220;data.&amp;#60;&amp;#37;&amp;#61;prop.DbRefTableName&amp;#37;&amp;#62;&amp;#8221; before the definition of &amp;#8220;data&amp;#8221;.&lt;br /&gt;&lt;br /&gt;By comparing the ChildDelete.inc to DataPortalDelete.inc, it&amp;#8217;s not clear to me why we pass &amp;#8220;data.&amp;#60;&amp;#37;&amp;#61;prop.DbRefTableName&amp;#37;&amp;#62;&amp;#8221; as second parameter to the DataPortal.UpdateChild&amp;#40;&amp;#41; method. In DataPortalDelete.inc, we pass &amp;#8220;this&amp;#8221; instead, as shown by the corresponding lines from DataPortalDelete.inc&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#60;&amp;#37;if&amp;#40;objInfo.ChildCollection.Count&amp;#62;0&amp;#41; &amp;#123;&amp;#37;&amp;#62;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#41;&amp;#37;&amp;#62;&amp;#47;&amp;#47;Delete Child object&amp;#40;s&amp;#41;, which may contain concurrency check&lt;br /&gt;&amp;#60;&amp;#37;&amp;#125;&amp;#37;&amp;#62;&lt;br /&gt;&amp;#60;&amp;#37;  foreach &amp;#40;PropertyInfo prop in objInfo.ChildCollection&amp;#41; &amp;#123; &amp;#37;&amp;#62;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#41;&amp;#37;&amp;#62;&amp;#60;&amp;#37;&amp;#61;prop.Name&amp;#37;&amp;#62;.Clear&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#41;&amp;#37;&amp;#62;DataPortal.UpdateChild&amp;#40;ReadProperty&amp;#40;&amp;#60;&amp;#37;&amp;#61;prop.PropertyInfoName&amp;#37;&amp;#62;&amp;#41;, this&amp;#41;&amp;#59;  &amp;#47;&amp;#47; &amp;#60;------------------- here&lt;br /&gt;&amp;#60;&amp;#37; &amp;#125; &amp;#37;&amp;#62;&lt;br /&gt;&amp;#60;&amp;#37;if&amp;#40;objInfo.ChildCollection.Count&amp;#62;0&amp;#41; &amp;#123;&amp;#37;&amp;#62;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;0&amp;#41;&amp;#37;&amp;#62;&amp;#60;&amp;#37;&amp;#125;&amp;#37;&amp;#62;&lt;br /&gt;&amp;#60;&amp;#37;&amp;#61;Indent&amp;#40;i&amp;#41;&amp;#37;&amp;#62;var data &amp;#61; new &amp;#60;&amp;#37;&amp;#61;objInfo.DalNamespace&amp;#37;&amp;#62;.&amp;#60;&amp;#37;&amp;#61;objInfo.EntityName&amp;#37;&amp;#62;&amp;#40;&amp;#41;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have verified against the 3.5 version, and the same situation is present.&lt;br /&gt;&lt;br /&gt;So I think it should be &amp;#34;this&amp;#34; instead of &amp;#8220;data.&amp;#60;&amp;#37;&amp;#61;prop.DbRefTableName&amp;#37;&amp;#62;&amp;#8221;.&lt;br /&gt;&lt;br /&gt;Thank you.&lt;br /&gt;</description><author>mrlucmorin</author><pubDate>Thu, 19 Feb 2009 15:55:57 GMT</pubDate><guid isPermaLink="false">Created Issue: Child of Child template error 20090219035557P</guid></item><item><title>Commented Issue: Support for CSLA 3.6</title><link>http://www.codeplex.com/CSLAcontrib/WorkItem/View.aspx?WorkItemId=20339</link><description>Hi,&lt;br /&gt;&lt;br /&gt;Are you planning on supporting CSLA 3.6 &amp;#63; Or is the current state of the templates good enough so there&amp;#39;s no big difference &amp;#63;&lt;br /&gt;&lt;br /&gt;Thank you&lt;br /&gt;Comments: ** Comment from web user: rfcdejong ** &lt;p&gt;For me as well, because we are working on CSLA 3.6..&lt;/p&gt;&lt;p&gt;There seems to be no IMobileObject on the SmartInt32 etc.&lt;br /&gt;And no TypeConverter defined.&lt;/p&gt;&lt;p&gt;I think that it&amp;#39;s needed because we are using WPF.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><author>rfcdejong</author><pubDate>Wed, 18 Feb 2009 17:12:47 GMT</pubDate><guid isPermaLink="false">Commented Issue: Support for CSLA 3.6 20090218051247P</guid></item><item><title>Source code checked in, #46985</title><link>http://www.codeplex.com/CSLAcontrib/SourceControl/ListDownloadableCommits.aspx</link><description>fix&amp;#58;&amp;#13;&amp;#10;- UpdateChild incorrectly pass data variable on ChildDelete.inc </description><author>RickySupit</author><pubDate>Wed, 18 Feb 2009 02:52:13 GMT</pubDate><guid isPermaLink="false">Source code checked in, #46985 20090218025213A</guid></item><item><title>Created Issue: Nullable Char Issue</title><link>http://www.codeplex.com/CSLAcontrib/WorkItem/View.aspx?WorkItemId=21034</link><description>Nullable chars in the Linq-to-SQL DAL are currently mapped to strings by the CSLA 3.5 codesmith EditableRoot template.  This is dandy except for the fact that the conversion between these two different types is not accounted for in the generated DataPortal_Fetch, DataPortal_Insert and DataPortal_Update methods.  Could someone please add a fix to the source code&amp;#63;  &lt;br /&gt;&lt;br /&gt;Thanks so much to the contributors for all your hard work - these templates are really useful&amp;#33;&lt;br /&gt;</description><author>Tron5000</author><pubDate>Fri, 06 Feb 2009 16:43:59 GMT</pubDate><guid isPermaLink="false">Created Issue: Nullable Char Issue 20090206044359P</guid></item><item><title>Source code checked in, #46120</title><link>http://www.codeplex.com/CSLAcontrib/SourceControl/ListDownloadableCommits.aspx</link><description>CodeSmith CS templates for CSLA 3.6&amp;#58; initial version&amp;#13;&amp;#10;Changes from v3.5&amp;#58;&amp;#13;&amp;#10;- remove redundant argument on LoadProperty, ReadProperty, GetProperty, SetProperty, RegisterProperty&amp;#13;&amp;#10;- use GetPropertyConvert, SetPropertyConvert, LoadPropertyConvert when assignment of unequal types.&amp;#13;&amp;#10;- add friendly name to RegisterProperty.&amp;#13;&amp;#10;- DbConnection to use DalNamespace as prefix.&amp;#13;&amp;#10;- fix&amp;#58; update is ignored changed value is default value. Move and use Attach&amp;#40;data, true&amp;#41; inside IsSelfDirty.&amp;#13;&amp;#10;- use UpdateChildren instead of UpdateChild on XX_Insert.  ReadProperty has bug when property is lazy-load.</description><author>RickySupit</author><pubDate>Sun, 25 Jan 2009 23:51:00 GMT</pubDate><guid isPermaLink="false">Source code checked in, #46120 20090125115100P</guid></item><item><title>Commented Issue: ErrorWarnInfoProvider</title><link>http://www.codeplex.com/CSLAcontrib/WorkItem/View.aspx?WorkItemId=20403</link><description>Hi, I can not implement ErrorWarnInfoProvider in Example.Utility project.&lt;br /&gt;I need to fire ValidationRules.CheckRules for error severity &amp;#61; warning or information in DataProtal Create and Data Portal Fetch Operations. The error provider only fires error severity &amp;#61; error because bussiness base object return isvalid&amp;#61; false and error severity &amp;#61; warning or information, not return isvalid&amp;#61;false so not be fired . &lt;br /&gt;I want to invoke ValidationRules.CheckRules and the ErrorWarnInfoProvider show me all icons for all the types errors.&lt;br /&gt;I have tried to modify IDataerrorInfo Properties in Core.BussinessBase to show broken rules warning and information in error provider, but no works.&lt;br /&gt;Any ideas&amp;#63;&lt;br /&gt;Thanks in advance&lt;br /&gt;Comments: ** Comment from web user: tiago ** &lt;p&gt;Try this version&lt;/p&gt;</description><author>tiago</author><pubDate>Tue, 13 Jan 2009 00:44:00 GMT</pubDate><guid isPermaLink="false">Commented Issue: ErrorWarnInfoProvider 20090113124400A</guid></item><item><title>Created Issue: ErrorWarnInfoProvider</title><link>http://www.codeplex.com/CSLAcontrib/WorkItem/View.aspx?WorkItemId=20403</link><description>Hi, I can not implement ErrorWarnInfoProvider in Example.Utility project.&lt;br /&gt;I need to fire ValidationRules.CheckRules for error severity &amp;#61; warning or information in DataProtal Create and Data Portal Fetch Operations. The error provider only fires error severity &amp;#61; error because bussiness base object return isvalid&amp;#61; false and error severity &amp;#61; warning or information, not return isvalid&amp;#61;false so not be fired . &lt;br /&gt;I want to invoke ValidationRules.CheckRules and the ErrorWarnInfoProvider show me all icons for all the types errors.&lt;br /&gt;I have tried to modify IDataerrorInfo Properties in Core.BussinessBase to show broken rules warning and information in error provider, but no works.&lt;br /&gt;Any ideas&amp;#63;&lt;br /&gt;Thanks in advance&lt;br /&gt;</description><author>luisxvarg</author><pubDate>Tue, 30 Dec 2008 15:59:04 GMT</pubDate><guid isPermaLink="false">Created Issue: ErrorWarnInfoProvider 20081230035904P</guid></item><item><title>Created Issue: Support for CSLA 3.6</title><link>http://www.codeplex.com/CSLAcontrib/WorkItem/View.aspx?WorkItemId=20339</link><description>Hi,&lt;br /&gt;&lt;br /&gt;Are you planning on supporting CSLA 3.6 &amp;#63; Or is the current state of the templates good enough so there&amp;#39;s no big difference &amp;#63;&lt;br /&gt;&lt;br /&gt;Thank you&lt;br /&gt;</description><author>mrlucmorin</author><pubDate>Tue, 23 Dec 2008 16:10:44 GMT</pubDate><guid isPermaLink="false">Created Issue: Support for CSLA 3.6 20081223041044P</guid></item><item><title>Commented Issue: ErrorTreeView doesn't display broken grandchild objects</title><link>http://www.codeplex.com/CSLAcontrib/WorkItem/View.aspx?WorkItemId=20214</link><description>In the example you have a root, child and grandchild.&lt;br /&gt;The ErrorTreeView doesn&amp;#39;t  display broken rules of the grandchildren in the following case&amp;#58;&lt;br /&gt;&lt;br /&gt;Root doesn&amp;#39;t have children when started &amp;#58; &amp;#40;put the following lines in comment&amp;#41;&lt;br /&gt;&lt;br /&gt;Root.vb &amp;#58;&lt;br /&gt;    Public Shared Function NewRoot&amp;#40;&amp;#41; As Root&lt;br /&gt;        Dim chld As New Root&lt;br /&gt;        &amp;#39;Dim gc As Child&lt;br /&gt;        &amp;#39;gc &amp;#61; Child.NewChild&amp;#40;&amp;#34;Child 1&amp;#34;&amp;#41;&lt;br /&gt;        &amp;#39;chld.Children.Add&amp;#40;gc&amp;#41;&lt;br /&gt;        &amp;#39;gc &amp;#61; Child.NewChild&amp;#40;String.Empty&amp;#41;&lt;br /&gt;        &amp;#39;chld.Children.Add&amp;#40;gc&amp;#41;&lt;br /&gt;        &amp;#39;gc &amp;#61; Child.NewChild&amp;#40;&amp;#34;Child 3&amp;#34;&amp;#41;&lt;br /&gt;        &amp;#39;chld.Children.Add&amp;#40;gc&amp;#41;&lt;br /&gt;        chld.ValidationRules.CheckRules&amp;#40;&amp;#41;&lt;br /&gt;        Return chld&lt;br /&gt;    End Function&lt;br /&gt;&lt;br /&gt;and when creating a child there are no broken rules &amp;#40;automatically some grandchilds are created in the example, let the grnadchilds have the broken rules, so for the grandchild don&amp;#39;t change anything, only put the broken rules of a child object in comment&amp;#41;&lt;br /&gt;&lt;br /&gt;Child.vb&lt;br /&gt;    Protected Overrides Sub AddBusinessRules&amp;#40;&amp;#41;&lt;br /&gt;        MyBase.AddBusinessRules&amp;#40;&amp;#41;&lt;br /&gt;        &amp;#39;ValidationRules.AddRule&amp;#40;AddressOf Csla.Validation.CommonRules.StringRequired, &amp;#34;Name&amp;#34;&amp;#41;&lt;br /&gt;        &amp;#39;ValidationRules.AddRule&amp;#40;Of Child, Csla.Validation.RuleArgs&amp;#41;&amp;#40; _&lt;br /&gt;        &amp;#39;    AddressOf ValidateValue, New Csla.Validation.RuleArgs&amp;#40;&amp;#34;SomeValue&amp;#34;&amp;#41;&amp;#41;&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;You&amp;#39;ll see when you create a new child object in the UI automatically some grandchilds are created with broken rules. But the ErrorTreeView doesn&amp;#39;t show it.&lt;br /&gt;Comments: ** Comment from web user: Alef ** &lt;p&gt;You can solve the problem by modifying the method FillNode in the class ErrorTreeNode&amp;#58;&lt;/p&gt;&lt;p&gt;put in comment the check for  item.IsVisible.&lt;/p&gt;&lt;p&gt;Only disadvantage is that we see an empty node Children, but now when adding a child you&amp;#39;ll see in the ErrorTreeView the broken rules of the grandchilds. &amp;#40;the example create automatically some broken grandchilds when a child object is created&amp;#41;&lt;/p&gt;&lt;p&gt;Do you have an idea how to avoid the empty node Children&amp;#63;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description><author>Alef</author><pubDate>Wed, 17 Dec 2008 15:55:19 GMT</pubDate><guid isPermaLink="false">Commented Issue: ErrorTreeView doesn't display broken grandchild objects 20081217035519P</guid></item><item><title>Commented Issue: Nullable types</title><link>http://www.codeplex.com/CSLAcontrib/WorkItem/View.aspx?WorkItemId=5451</link><description>It would be nice if the templates generated nullable types for integer and booleans.  &lt;br /&gt;&lt;br /&gt;There are cases where we want to distinguish between a database null and a 0 integer, and need to know if a required integer field has been entered.  In some cases 0 is a valid value and we want to disquish it from a user entering blank.  Defaulting blank to another non-zero value does not work in all scenarios either.&lt;br /&gt;&lt;br /&gt;The same situation exists with boolean variables where we may want to treat a user answer no to a question &amp;#40;insert false&amp;#41; as different than the user not answering the question &amp;#40;insert null&amp;#41;.&lt;br /&gt;Comments: ** Comment from web user: Alef ** &lt;p&gt;I changed the TemplateBase as you suggested but nothing changes in the generated code in CSLA 3.5. &amp;#40;I&amp;#39;ve set in my xml file AllowDbNull to true&amp;#41;&lt;/p&gt;&lt;p&gt;What is working for me is changing eg the property Type from int to int&amp;#63;. When you are using XML Spy you don&amp;#39;t see int&amp;#63; in the combo list, but you can type it.&lt;br /&gt;&lt;/p&gt;</description><author>Alef</author><pubDate>Wed, 17 Dec 2008 11:12:23 GMT</pubDate><guid isPermaLink="false">Commented Issue: Nullable types 20081217111223A</guid></item><item><title>Created Issue: ErrorTreeView doesn't display broken grandchild objects</title><link>http://www.codeplex.com/CSLAcontrib/WorkItem/View.aspx?WorkItemId=20214</link><description>In the example you have a root, child and grandchild.&lt;br /&gt;The ErrorTreeView doesn&amp;#39;t  display broken rules of the grandchildren in the following case&amp;#58;&lt;br /&gt;&lt;br /&gt;Root doesn&amp;#39;t have children when started &amp;#58; &amp;#40;put the following lines in comment&amp;#41;&lt;br /&gt;&lt;br /&gt;Root.vb &amp;#58;&lt;br /&gt;    Public Shared Function NewRoot&amp;#40;&amp;#41; As Root&lt;br /&gt;        Dim chld As New Root&lt;br /&gt;        &amp;#39;Dim gc As Child&lt;br /&gt;        &amp;#39;gc &amp;#61; Child.NewChild&amp;#40;&amp;#34;Child 1&amp;#34;&amp;#41;&lt;br /&gt;        &amp;#39;chld.Children.Add&amp;#40;gc&amp;#41;&lt;br /&gt;        &amp;#39;gc &amp;#61; Child.NewChild&amp;#40;String.Empty&amp;#41;&lt;br /&gt;        &amp;#39;chld.Children.Add&amp;#40;gc&amp;#41;&lt;br /&gt;        &amp;#39;gc &amp;#61; Child.NewChild&amp;#40;&amp;#34;Child 3&amp;#34;&amp;#41;&lt;br /&gt;        &amp;#39;chld.Children.Add&amp;#40;gc&amp;#41;&lt;br /&gt;        chld.ValidationRules.CheckRules&amp;#40;&amp;#41;&lt;br /&gt;        Return chld&lt;br /&gt;    End Function&lt;br /&gt;&lt;br /&gt;and when creating a child there are no broken rules &amp;#40;automatically some grandchilds are created in the example, let the grnadchilds have the broken rules, so for the grandchild don&amp;#39;t change anything, only put the broken rules of a child object in comment&amp;#41;&lt;br /&gt;&lt;br /&gt;Child.vb&lt;br /&gt;    Protected Overrides Sub AddBusinessRules&amp;#40;&amp;#41;&lt;br /&gt;        MyBase.AddBusinessRules&amp;#40;&amp;#41;&lt;br /&gt;        &amp;#39;ValidationRules.AddRule&amp;#40;AddressOf Csla.Validation.CommonRules.StringRequired, &amp;#34;Name&amp;#34;&amp;#41;&lt;br /&gt;        &amp;#39;ValidationRules.AddRule&amp;#40;Of Child, Csla.Validation.RuleArgs&amp;#41;&amp;#40; _&lt;br /&gt;        &amp;#39;    AddressOf ValidateValue, New Csla.Validation.RuleArgs&amp;#40;&amp;#34;SomeValue&amp;#34;&amp;#41;&amp;#41;&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;You&amp;#39;ll see when you create a new child object in the UI automatically some grandchilds are created with broken rules. But the ErrorTreeView doesn&amp;#39;t show it.&lt;br /&gt;</description><author>Alef</author><pubDate>Sat, 13 Dec 2008 19:05:09 GMT</pubDate><guid isPermaLink="false">Created Issue: ErrorTreeView doesn't display broken grandchild objects 20081213070509P</guid></item><item><title>Closed Issue: ExcuteFetch  method + ValidationRules.CheckRules bug</title><link>http://www.codeplex.com/CSLAcontrib/WorkItem/View.aspx?WorkItemId=20186</link><description>I&amp;#39;m using the VB templates but the same thing occurs in the C&amp;#35; code templatess. The current generators create the following code snippit in the ExcuteFetch method.&lt;br /&gt;              Using dr As SafeDataReader &amp;#61; New SafeDataReader&amp;#40;cm.ExecuteReader&amp;#40;&amp;#41;&amp;#41;&lt;br /&gt;                    FetchObject&amp;#40;dr&amp;#41;&lt;br /&gt;                    ValidationRules.CheckRules&amp;#40;&amp;#41;&lt;br /&gt;&lt;br /&gt;                    &amp;#39;load child object&amp;#40;s&amp;#41;&lt;br /&gt;                    FetchChildren&amp;#40;dr&amp;#41;&lt;br /&gt;                End Using&lt;br /&gt;&lt;br /&gt;I think there are a number of issues with the placement of the ValidationRules.CheckRules&amp;#40;&amp;#41; method. &lt;br /&gt;1. The object will be IsDirty&amp;#61;True and IsNew &amp;#61; True when you execute the code so any validation rules the check for Target.IsDirty OrElse Target.IsNew will be incorrect when the CheckRules method runs.&lt;br /&gt;2. If you have more complex business rules that include checks against values in the children object, they are invariably going to fail, but then you get the children data after this method is called, so the businessobject could then be valid.&lt;br /&gt;&lt;br /&gt;Recommended changes.&lt;br /&gt;1. Move the ValidationRules.CheckRules&amp;#40;&amp;#41; call till after the root&amp;#47;children objects have all been loaded for the business object.&lt;br /&gt;2. Include a MarkOld method prior to calling the ValidationRules.&lt;br /&gt;Eg.&lt;br /&gt;...&lt;br /&gt;              Using dr As SafeDataReader &amp;#61; New SafeDataReader&amp;#40;cm.ExecuteReader&amp;#40;&amp;#41;&amp;#41;&lt;br /&gt;                    FetchObject&amp;#40;dr&amp;#41;&lt;br /&gt;                    &lt;br /&gt;             &amp;#39;load child object&amp;#40;s&amp;#41;&lt;br /&gt;                    FetchChildren&amp;#40;dr&amp;#41;&lt;br /&gt;                End Using&lt;br /&gt;              MarkOld&amp;#40;&amp;#41;&lt;br /&gt;             ValidationRules.CheckRules&amp;#40;&amp;#41;&lt;br /&gt;....&lt;br /&gt;Comments: completed! change set 44818</description><author>RickySupit</author><pubDate>Sat, 13 Dec 2008 12:53:44 GMT</pubDate><guid isPermaLink="false">Closed Issue: ExcuteFetch  method + ValidationRules.CheckRules bug 20081213125344P</guid></item><item><title>Source code checked in, #44818</title><link>http://www.codeplex.com/CSLAcontrib/SourceControl/ListDownloadableCommits.aspx</link><description>workitem&amp;#58;20186 &amp;#40;CS v2.0&amp;#41;&amp;#13;&amp;#10;Move ValidationRules.CheckRules&amp;#40;&amp;#41; after fetch children</description><author>RickySupit</author><pubDate>Sat, 13 Dec 2008 12:49:23 GMT</pubDate><guid isPermaLink="false">Source code checked in, #44818 20081213124923P</guid></item><item><title>Commented Issue: VB Command Template crashed Codesmith.</title><link>http://www.codeplex.com/CSLAcontrib/WorkItem/View.aspx?WorkItemId=20187</link><description>G&amp;#39;day,&lt;br /&gt;&lt;br /&gt;If you try and run the command template you will get the following error. &lt;br /&gt;&lt;br /&gt;Template &amp;#39;Command.cst&amp;#39; is not a business Object template type.&lt;br /&gt;Comments: ** Comment from web user: RickySupit ** &lt;p&gt;Jamie,&lt;br /&gt;I&amp;#39;m not sure if anybody still maintain the VB version.  I believe they are not on par with the C&amp;#35; version.  Would you like to contribute and make the VB version on par with the C&amp;#35; version&amp;#63;&lt;/p&gt;&lt;p&gt;Ricky&lt;/p&gt;</description><author>RickySupit</author><pubDate>Sat, 13 Dec 2008 12:27:22 GMT</pubDate><guid isPermaLink="false">Commented Issue: VB Command Template crashed Codesmith. 20081213122722P</guid></item></channel></rss>