AnantLabs / codesmith

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

XML data type in Quickstart #643

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using standard MS AdventureWorks
2. run Quickstart.
3. their will be 16 errors for the XmlDocument type for table Store and others.

Original issue reported on code.google.com by owenbre...@msn.com on 23 Apr 2012 at 4:56

GoogleCodeExporter commented 9 years ago
  if(demographics.HasValue) criteria.Demographics = demographics.Value;

causes Error

Error   1   'System.Xml.XmlDocument' does not contain a definition for 'HasValue' 
and no extension method 'HasValue' accepting a first argument of type 
'System.Xml.XmlDocument' could be found (are you missing a using directive or 
an assembly reference?) C:\Users\wylie\Documents\CodeSmith 
Generator\Templates\CSLA\AdventureWorks\AdventureWorks.Business\Entities\Store.G
enerated.cs 388 29  AdventureWorks.Business

Original comment by owenbre...@msn.com on 23 Apr 2012 at 9:30

GoogleCodeExporter commented 9 years ago
Hello,

We currently do not support the Xml datatypes. There is a patch located here 
which makes some changes for xml support but it really needs to be separated 
out (http://code.google.com/p/codesmith/issues/detail?id=517).

Would you mind modifying the templates to support this? There are some comments 
located here (http://code.google.com/p/codesmith/issues/detail?id=180) which we 
have been discussing this. I'd be more than happy to verify your changes and 
answer any questions.

Original comment by bniemyjski on 24 Apr 2012 at 1:38

GoogleCodeExporter commented 9 years ago
requires Devexpress for the grid. Only worked on the ProductModel table.(it has 
two XMLDocuments)HasValue extension is only pseudocode.

Wylie A Smith (Al)

In seeking wisdom the first step is silence, the second: listening, the third: 
remembering, the fourth: practicing, the fifth: teaching others.

- Solomon Ibn Gabirol

Original comment by owenbre...@msn.com on 30 Apr 2012 at 4:23

GoogleCodeExporter commented 9 years ago
I'm confused by your last response in regards to this case and it's comments. 
Could you please clarify.

Original comment by bniemyjski on 3 May 2012 at 2:03