web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / DaxGeek / Define a Data Contract Class

Define a Data Contract Class

Hossein.K Profile Picture Hossein.K 6,648
1. In the AOT, right-click the Classes node, and then select New Class.

2. Right-click the new class, click
Rename, and then enter "SrsRDPContractSample".

3. Expand SrsRDPContractSample, right-click
classDeclaration, and then click View Code.

4. In code editor, enter the following code in the class declaration to define the class.


1
2
3
4
5
6
7
[DataContractAttribute]
public class SrsRDPContractSample
{
AccountNum accountNum;
CustAccountStatement accountStmt;
Boolean inclTax;
}

5. Save the class and close the editor.


Best Regards,
Hossein Karimi

Comments

*This post is locked for comments