Files
appwrite/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-table.md

688 B

using Appwrite; using Appwrite.Models; using Appwrite.Services;

Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key

TablesDB tablesDB = new TablesDB(client);

Table result = await tablesDB.CreateTable( databaseId: "<DATABASE_ID>", tableId: "<TABLE_ID>", name: "", permissions: new List { Permission.Read(Role.Any()) }, // optional rowSecurity: false, // optional enabled: false, // optional columns: new List