Как лучше хранить GUID в базе (тип данных)?
Тестовый проект очень простой:
Главная компонента, вызывает вложенную компоненту, та еще одну. Код 1й вложенной компоненты, остальное тоже самое практически
Child 1 Component enter await thread @idOfRenderingThreadIn continue thread @idOfRenderingThreadOut <Child2Component></Child2Component> @code { private int idOfRenderingThreadIn; private int idOfRenderingThreadOut; protected override async Task OnInitializedAsync() { idOfRenderingThreadIn = System.Threading.Thread.CurrentThread.ManagedThreadId; await base.OnInitializedAsync(); await Task.Delay(10); idOfRenderingThreadOut = System.Threading.Thread.CurrentThread.ManagedThreadId; } }
Результат выполнения
и нашлось: что только для Blazor server повторный вход в компоненту может быть из другого потока (точнее речь идет об отрисовке)
Ошибка:
error: System.InvalidOperationException: A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913.
По ссылке ничего полезного не нашлось для данного случая.
То бишь отчего не работает, стало вроде понятно. А вот отчего Оракл работает еще непонятно.