Вот фрагмент страницы .razor:
Код: Выделить всё
Video Number
Episode Name
@foreach (var entry in entries)
{
@entry.VideoNumber
@entry.EpisodeName
}
Код: Выделить всё
var contentStream = await httpResponse.Content.ReadAsStreamAsync();
return await System.Text.Json.JsonSerializer.DeserializeAsync(contentStream, new System.Text.Json.JsonSerializerOptions { DefaultIgnoreCondition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, PropertyNameCaseInsensitive = true });
Что я делаю неправильно?
Дополнение
Вот определение класса Entry:
Код: Выделить всё
namespace BlazorMediaLibrary.API.Models;
public partial class Entry
{
[Key, Column("Video Number", Order = 0)]
public short VideoNumber { get; set; }
[Key, Column("Entry", Order = 1)]
public byte Entry1 { get; set; }
public short ShowCode { get; set; }
public string EpisodeName { get; set; } = null!;
public DateTime? ActualPlayTime { get; set; }
public bool Completed { get; set; }
public string? Comment { get; set; }
public TimeOnly? ActualPlayTime1 { get; set; }
public virtual Show Show { get; set; } = null!;
public virtual Video VideoNumberNavigation { get; set; } = null!;
}
Подробнее здесь: https://stackoverflow.com/questions/791 ... blazor-app
Мобильная версия