You can decorate classes in AX2012 with DataContractAttribute in much the same way as in .NET with System.Runtime.Serialization.DataContractAttribute . The same is true also for DataMemberAttribute .
This is a simple data contract class in X++:
[ DataContractAttribute ]
class ItemContract
{
str name;
[ DataMemberAttribute ( "Name" ) ]
public str parmName ( str _name = name )
{
name = _name;
return name;
}
}
In...(read more)
↧