AnantLabs / codesmith

Automatically exported from code.google.com/p/codesmith
1 stars 0 forks source link

CSLA - ReadOnlyListBase generated Silverlight Asynchronous Factory Methods have broken syntax #403

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate a ReadOnlyListBase with Silverlight enabled
2.
3.

What is the expected output? What do you see instead?

In the GetByObjectAsync methods, the last line looks like:
            dp.BeginFetch(new CustomerCriteria{CustomerID = customerID}));

But should have been:
            dp.BeginFetch(new CustomerCriteria{CustomerID = customerID});

There is one too many ")" in closing.

What version of the product are you using?
CodeSmith: v5.2.1, CSLA Templates: v2.0.1.1689, CSLA Framework: v4.0.0.

Please provide any additional information below.

This can be fixed by changing 
CSLA\CSharp\BusinessLayer\Internal\ReadOnlyList.Generated.cst line 92 from
            dp.BeginFetch(new <%= ChildBusinessClassName %>Criteria{<%= sc.Members.BuildObjectInitializer() %>}));

to
            dp.BeginFetch(new <%= ChildBusinessClassName %>Criteria{<%= sc.Members.BuildObjectInitializer() %>});

Original issue reported on code.google.com by coulte...@gmail.com on 12 Jun 2010 at 4:21

GoogleCodeExporter commented 9 years ago
Hello,

This has been fixed in revision 1698.

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 15 Jun 2010 at 12:06

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 21 Jun 2010 at 8:10