Attribute declaration in XSD:
<xs:attribute name="loanID" type="xs:long" use="required" />
Code generated by WSCF.blue via Generate Data Contract Code:
private long loanIDField;
public long LoanID
this.loanID = value;
Code generation options selected: "Public properties", Adjust casing", and List<T>.
Question: is it possible to tell WSCF.blue to NOT append "Field" suffix to private field names? If so, how?
The reason I'm asking: XSDs are part of data contract for a web service that can be consumed as either XML of JSON. XML serializers generate attribute names based on XMLAttribute decoration (in this case, "loanID") - which is exactly how it should
be. JSON serializers apparently look at the private field name and generate "loanIDField" attribute name - which is a problem.