예제 #1
0
        static void Main(string[] args)
        {
            var xrm = new XrmServiceContext("Xrm");

            WriteExampleContacts(xrm);

            //create a new contact called Allison Brown
            var allisonBrown = new Xrm.Contact
            {
                FirstName                = "Allison",
                LastName                 = "Brown",
                Address1_Line1           = "23 Market St.",
                Address1_City            = "Sammamish",
                Address1_StateOrProvince = "MT",
                Address1_PostalCode      = "99999",
                Telephone1               = "12345678",
                EMailAddress1            = "*****@*****.**"
            };

            xrm.AddObject(allisonBrown);
            xrm.SaveChanges();

            WriteExampleContacts(xrm);

            Console.WriteLine("Press any key to exit.");
            Console.ReadKey();
        }
예제 #2
0
파일: Program.cs 프로젝트: cesugden/Scripts
		static void Main(string[] args)
		{
			var xrm = new XrmServiceContext("Xrm");
			
			WriteExampleContacts(xrm);

			//create a new contact called Allison Brown
			var allisonBrown = new Xrm.Contact
			{
				FirstName = "Allison",
				LastName = "Brown",
				Address1_Line1 = "23 Market St.",
				Address1_City = "Sammamish",
				Address1_StateOrProvince = "MT",
				Address1_PostalCode = "99999",
				Telephone1 = "12345678",
				EMailAddress1 = "*****@*****.**"
			};

			xrm.AddObject(allisonBrown);
			xrm.SaveChanges();

			WriteExampleContacts(xrm);

			Console.WriteLine("Press any key to exit.");
			Console.ReadKey();
		}
예제 #3
0
파일: Program.cs 프로젝트: Phil-Ruben/CRM
        static private void addContact()
        {
            var xrm = new XrmServiceContext("Xrm");

            listContacts(xrm);
            //Create a new contact called Allison Brown.
            var allisonBrown = new Xrm.Contact
            {
                FirstName = "Allison",
                LastName = "Brown 2",
                Address1_Line1 = "23 Market St.",
                Address1_City = "Sammamish",
                Address1_StateOrProvince = "MT",
                Address1_PostalCode = "99999",
                Telephone1 = "12345678",
                EMailAddress1 = "*****@*****.**"
            };

            xrm.AddObject(allisonBrown);
            xrm.SaveChanges();

            listContacts(xrm);

        }