Ejemplo n.º 1
0
        public void AddCustomer(CustomerEntity2 entity)
        {
            // Create the TableOperation object that inserts the customer entity.
            TableOperation insertOperation = TableOperation.Insert(entity);

            // Execute the insert operation.
            table.Execute(insertOperation);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            CloudDal cloudDal = new CloudDal();

            //// Create a new customer entity.
            //CustomerEntity customer1 = new CustomerEntity("Harp", "Walter");
            //customer1.Email = "*****@*****.**";
            //customer1.PhoneNumber = "425-555-0101";

            CustomerEntity2 customer2 = new CustomerEntity2("7omos")
            {
                WorkAddress = "work adrs",
                HomeAddress = "home adrs",
                Mobile = "123",
                Salary = 11111,
                TaxRatio = 1.3f,
                PramiryEmail = "[email protected]",
            };

            cloudDal.AddCustomer(customer2);
        }