I just downloaded the Trial version of Codesmith 4.0 and installed it. I opened up Codesmith and selected the .netTiers templates. I selected a good number of my tables, and set properties for Codesmith to generate a web-site, web-services, etc. Opened the solution generated in Visual Studio 2005, and built the solution.
I am getting compile errors (I haven't changed any code).
The error message is:
Error 1 The name 'StudentIDSource' does not exist in the current context InsideTrack.RightTrack.Domain C:\Projects\InsideTrack\ProductEval\CodeSmith\InsideTrack.RightTrack.Domain\StudentBase.generated.cs 126 5
The generated code in the source file is:
#region
Entity Properties
/// <summary>
/// Gets or Sets the StudentID property.
///
/// </summary>
/// <value>This type is int</value>
[Entities.
Bindable,
DataObjectField(true, false, false)]
public override System.Int32 StudentID
{
get
{
return base.StudentID;
}
set
{
if (base.StudentID == value)
return;
base.StudentID = value;
StudentIDSource =
null;
}
}
The table definition for the TermStatusTable is attached as a .png image.
Can someone tell me what is going wrong? Why is StudentIdSource being generated somewhere?
Steven Archibald
President, Steven Archibald Consulting Corporation
"Real Business" Solutions
The highest complement you can give me is a referral to your friends and associates.