AnantLabs / codesmith

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

Add XmlIgnore Attribute to Binary columns #476

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Solved by putting this line in Entity.Generated.cst:

<% if (dataType == "System.Data.Linq.Binary"){%>
        [XmlIgnore]
<%}%>

above the property declaration,

also had to block associations due to potential circular references

http://community.codesmithtools.com/Template_Frameworks/f/66/t/10623.aspx

Original issue reported on code.google.com by bniemyjski on 4 Aug 2010 at 3:38