Have a little problem to create the ProjectResource.cs and ProjectResources.cs object with codesmith and the latest csla templates.
If I have got it right... ProjectResources is a editablechildlist with Project as parent. The output of the generated code is
foreach
(ProjectResource child in this){
if(child.IsNew)
child.Insert(cn, parent);
else
child.Update(cn, parent);
}
but this gives med compile error: no overload for method 'insert' takes '2' arguments..
and in the ProjectResource file the code is
internal
void Update(SqlConnection cn)which should have been
internal void Update(Sqlconnection cn, ProjectResource project)
or something like that? Is it me doing something wrong or is the template wrong?
--
Peder
Copyright (c) Marimer LLC