public void Get_table() { var managment = new Managment( clientEmail: "*****@*****.**", privateKey: File.ReadAllBytes(System.IO.Directory.GetCurrentDirectory() + "\\SheetDB.p12") ); managment.GetDatabase("Teste").GetTable <Pessoa>("Teste"); }
public void Delete_Permission() { var managment = new Managment( clientEmail: "*****@*****.**", privateKey: File.ReadAllBytes(System.IO.Directory.GetCurrentDirectory() + "\\SheetDB.p12") ); managment.GetDatabase("Teste").GetPermission("*****@*****.**").Delete(); }
public void Update_Record() { var managment = new Managment( clientEmail: "*****@*****.**", privateKey: File.ReadAllBytes(System.IO.Directory.GetCurrentDirectory() + "\\SheetDB.p12") ); managment.GetDatabase("Teste").GetTable <Pessoa>("Teste").Add(new Pessoa() { Id = 1, Nome = "c" }).Update(new Pessoa() { Id = 2, Nome = "d" }); }