CSLA .NET

From Rockford Lhotka's Expert C# 2008 and VB 2008 Business Objects books

Problem generating from XML

rated by 0 users
This post has 0 Replies | 0 Followers

Top 50 Contributor
Posts 146
wjcomeaux Posted: Wed, Aug 1 2007 11:07 AM

Hello again everyone:

We recently upgraded to a new version of Codesmith (the current latest). Now, when I try to generate my code from XML I am getting an error that I posted about last year. However, the fix that I found last year isn't working this time. The old post is at: http://forums.lhotka.net/forums/thread/9362.aspx

The actual error message I am getting is "Error Rendering AccessRequestER: Unique Column(s) is required."

Below is the XML Node that I am trying to generate from. I had an XSD for validation from a year ago, has a new one been released or has anyone else encountered this issue?

Thanks, Will

<Object Access="public" Interface="IStullerRequest" Type="EditableRoot" Name="AccessRequestER" Namespace="Stuller.Applications.Requests.Business">

<Properties>

<Property Name="ID" Type="int" DbColumnName="ID" IsPrimaryKey="true" IsIdentity="true" />

<Property Name="Parent_ID" Type="int" DbColumnName="Parent_ID" />

<Property Name="Parent_Type_ID" Type="int" DbColumnName="Parent_Type_ID" />

<Property Name="Title" Type="string" DbColumnName="Title">

<ValidationRules>

<StringRequired/>

<StringMaxLength>200</StringMaxLength>

</ValidationRules>

</Property>

<Property Name="Description" Type="string" DbColumnName="Description">

<ValidationRules>

<StringRequired/>

<StringMaxLength>4000</StringMaxLength>

</ValidationRules>

</Property>

<Property Name="Request_Severity_ID" Type="int" DbColumnName="Request_Severity_ID" />

<Property Name="Request_Status_ID" Type="int" DbColumnName="Request_Status_ID" />

<Property Name="Date_Requested" Type="SmartDate" DbColumnName="Date_Requested" />

<Property Name="Date_Needed" Type="SmartDate" DbColumnName="Date_Needed" />

<Property Name="Return_On_Investment_ID" Type="int" DbColumnName="Return_On_Investment_ID" />

<Property Name="Is_On_Hold" Type="bool" DbColumnName="Is_On_Hold" />

<Property Name="Last_Updated_By_User_ID" Type="int" DbColumnName="Last_Updated_By_User_ID" />

<Property Name="Time_Stamp" Type="byte[]" DbColumnName="Time_Stamp" IsReadOnly="true" />

</Properties>

<TransactionalType>None</TransactionalType>

<PropertyAuthorization>Write</PropertyAuthorization>

<AuthorizationRules>false</AuthorizationRules>

<DbCommands DbName="Requests">

<FetchCommand Type="StoredProcedure">AccessRequestER_Fetch</FetchCommand>

<InsertCommand>AccessRequestER_Insert</InsertCommand>

<UpdateCommand>AccessRequestER_Update</UpdateCommand>

<DeleteCommand>AccessRequestER_Delete</DeleteCommand>

</DbCommands>

</Object>

Page 1 of 1 (1 items) | RSS

Please contact Magenic for your .NET consulting
and CSLA .NET mentoring needs.
Please consider making a donation to help support the ongoing development of CSLA .NET.

Make donation through PayPal - it's fast, free and secure!
Why donate?
Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems