AnantLabs / codesmith

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

Build r1706 - C# - Data Access partial methods moved to "Generated" file - need to add System.Data.SqlClient to "using" declarations #411

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate the entities & build the project.

What is the expected output? What do you see instead?
Build fails with messages "The type or namespace name 'SqlConnection' could not 
be found (are you missing a using directive or an assembly reference?)"

What version of the product are you using?
CodeSmith 5.2.1
CSLA templates r1706

Please provide any additional information below.
Can be fixed by adding System.Data.SqlClient to the using clauses in the 
"Generated" templates ("CSLA-r1706\CSharp\BusinessLayer\Internal") (both 
entities & lists).
Sample fixed template attached.

Original issue reported on code.google.com by rlbrac...@gmail.com on 17 Jun 2010 at 4:24

Attachments:

GoogleCodeExporter commented 9 years ago
I also found this error, and attached some fixed templates to issue 410.

Original comment by RoyMunso...@gmail.com on 17 Jun 2010 at 4:34

GoogleCodeExporter commented 9 years ago
Hello,

This has been fixed in revision 1712.

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 19 Jun 2010 at 2:11

GoogleCodeExporter commented 9 years ago

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