Azure Functions University - Table Lesson (.NET Core)

preview_player
Показать описание
Video for the Azure Functions University - Table lesson using .NET Core.

0:00 Intro
0:22 Lessons overview
1:16 Contribute ideas & lessons
2:17 Start Table Storage lesson
4:02 Prerequisites
5:20 Microsoft Azure Storage Explorer
15:08 TableEntity output bindings
27:05 IAsyncCollector Table output bindings
30:39 TableEntity input bindings
34:48 CloudTable input bindings
43:48 Homework
46:49 More info
Рекомендации по теме
Комментарии
Автор

thanks for the great lesson, Marc
I went through the playlist and noticed that you didn't highlight "AuthorizationLevel" attribute and how to deal with it
I appreciate any comment of that

Signature for Table parameter is pretty same for input and output bindings and I am little bit confused which one is for input and output.
What is a way to get it right?

For output binding:

[FunctionName("Function1")]
public static async void Run([TimerTrigger("*/1 * * * * *")]TimerInfo myTimer,
[Table("TheTableName", Connection = "str")] IAsyncCollector<TheData> outputTable,
ILogger log)
{
await outputTable.AddAsync(myData);
}

For input binding:

[FunctionName("TableInput")]
public static void TableInput(
[QueueTrigger("table-items")] string input,
[Table("MyTable", "MyPartition", "{queueTrigger}")] MyPoco poco,
ILogger log)
{
log.LogInformation($"PK={poco.PartitionKey}, RK={poco.RowKey}, Text={poco.Text}");
}

OvRaf
join shbcf.ru