# Master Data Services Master Data API Sample This is a C# code sample to show how to use MDS APIs to create, read, update, and delete entity members. The sample code includes the following scenarios. 1. Create a leaf member using MDS API. 2. Get the leaf member information (the member identifier) by the member code using MDS API. 3. Update the leaf member information (change the name) using MDS API. 4. Create a consolidated member using MDS API. 5. Get the consolidated member information (the member identifier) by the member name using MDS API. 6. Update the entity member relationship (make the leaf member a child node of the consolidated member) using MDS API. 7. Delete the consolidated member using MDS API. 8. Delete the leaf member using MDS API. Please set the MDS URL (plus /Service/Service.svc) to mdsURL in Program.cs. string mdsURL = @"http://localhost/MDS/Service/Service.svc"; Program.cs uses Reference.cs (the service reference class file) that was generated by using Visual Studio to access MDS Web service API. You may need to regenerate Reference.cs in the case when MDS Web service API is changed. To generate Reference.cs using Visual Studio: You need to expose the WSDL. Exposing the WSDL is only necessary at the time when you want to generate proxy classes using a client development tool such as Visual Studio. After a proxy has been generated, the WSDL does not need to be exposed going forward for client programs to call the API. To enable an http/https Get on the WSDL: 1. Open the MDS web.config file in a text editor (