Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Blogs / DaxGeek / Define a Data Contract Class

Define a Data Contract Class

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