Exemple #1
0
        public static void ReadEntity()
        {
            //CloudStorageAccount csa = CloudStorageAccount.DevelopmentStorageAccount;
            var            tableClient  = csa.CreateCloudTableClient();
            var            mycompnytble = tableClient.GetTableReference("mycompany");
            TableOperation op           = TableOperation.Retrieve <Emp>("Azure", "10001");
            var            result       = mycompnytble.Execute(op);


            TableQuery <Emp> qry = new TableQuery <Emp>();
            var qryResult        = qry.All(e => !string.IsNullOrEmpty(e.RowKey) && Convert.ToInt32(e.RowKey) == 10001);
            //mycompnytble.ExecuteQuery<Emp>(qry);

            //var table = tableClient.GetTableReference("table name");
            //var entities = mycompnytble.ExecuteQuery(qry).ToList().All();
        }