Hi
I wonder if there is a bug in these templates or if it is due to my lack of understanding:
The example template CslaXML.cst together with the MySample.xml does not produce the expected output:
the MySample.xml states for the Project object
<Property Name="Resources" Type="ProjectResources" EntitySetName="Assignments" Default="ProjectResources.NewProjectResources()" IsChildCollection="true"/>
But the Fetch in the ProjectResources class is created with
private void Fetch(IEnumerable<Dal.ProjectResources> dataSet)
I would expect that the EntitySetName (i.e. Assignments) would apprear as the Dal dataset property and not the type of the child collection (i.e. not ProjectResources); What would the EntitySetName be good for otherwise?
In fact looking at the TemplateBase.cs it looks like that the Dal dataset is always set to the type of the childcollection !?
Has anyone ever thoroughly tested the CslaXml.cst?
I am using the 3.6 templates on csla 3.6.1
Thanks
Frank
Copyright (c) Marimer LLC