private void listBoxControl1_SelectedIndexChanged(object sender, EventArgs e) { DataTable temp = projectlistbox.DataSource as DataTable; string path = temp.Rows[projectlistbox.SelectedIndex][2].ToString(); if (firstlogin == false) { if (File.Exists(path) == true) { using (DBeng db = new DBeng()) { db.setProjectPath(path); using (LocalTables locals = new LocalTables(true)) { locals.getalltables(); } } this.Hide(); } else { MessageBox.Show("Dosya artık mevcut değil" + path); } } firstlogin = false; }
static void Main(string[] args) { var tables = new LocalTables(10002); var client = CloudStorageAccount.Parse(tables.ConnectionString).CreateCloudTableClient(); var table = client.GetTableReference("test"); table.CreateIfNotExists(); var entity = new DynamicTableEntity("PK", "RK", "*", new Dictionary <string, EntityProperty>() { { "Message", EntityProperty.GeneratePropertyForString("Hello, World!") } }); table.Execute(TableOperation.Insert(entity)); var result = table.Execute(TableOperation.Retrieve("PK", "RK")); Console.WriteLine(((DynamicTableEntity)result.Result).Properties["Message"]); Console.ReadLine(); }