What's the difference between RenderMode.Server and RenderMode.ServerPrerendered in blazor?
What's the difference between ``` @(await Html.RenderComponentAsync<Todo>(RenderMode.ServerPrerendered)) ``` and ``` @(await Html.RenderComponentAsync<Todo>(RenderMode.Server)) ``` I was lookin...
- Modified
- 15 Sep at 15:16
ServiceStack route for GET and List Collection
I wanted to know if I could call this with a route? I can call this code from my internal services without issues. I don't see how I can send a collection to the route without adding a property to ho...
- Modified
- 4 Oct at 03:57
How to batch sql calls using servicestack
I have an application that is writing records almost continuously in response to a system event. I am using C# ServiceStack Ormlite. I wonder if there is an easy way to batch these inserts such that...
- Modified
- 4 Oct at 02:51
add all the required services by calling 'IServiceCollection.AddHealthChecks'
I am using ASP.NET Core 3, .NET Core 3.0.100, Visual Studio 2019 Community. I follow this guide [https://learn.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-3.0?view=aspnetcore-3.0#health-c...
- Modified
- 23 Oct at 00:39
Change variable value on input key press on Blazor
What I want to do is update the variable value when the user press a key, but it only update the value on blur of the input. The following code is not working. ``` <p>@increment</p> <input type...
- Modified
- 3 Oct at 16:58
Difference between @bind and @bind-value
What is the difference of using `@bind` and `@bind-value`? I made this simple example, and testing it in the browser, I didn't see any difference. ``` <p>@@bind @increment1</p> <input type="te...
- Modified
- 3 Oct at 15:8
"Uncaught SyntaxError: Cannot use import statement outside a module" when importing ECMAScript 6
I'm using ArcGIS JSAPI 4.12 and wish to use [Spatial Illusions](https://github.com/spatialillusions/milsymbol) to draw military symbols on a map. When I add `milsymbol.js` to the script, the console ...
- Modified
- 8 Mar at 22:36
ASP .NET Core Identity custom ApiAuthorizationDbContext
I'm working with ASP .NET Core 3.0 with Angular project. I see this new `ApiAuthorizationDbContext` and I wanted to override the table name and user id (to int) but there is no way I can do it. Does a...
- Modified
- 16 Sep at 18:38
How to call a stored procedure in EF Core 3.0 via FromSqlRaw
I recently migrated from EF Core 2.2 to EF Core 3.0. Unfortunately, I haven't found a way to call a stored procedure that returns an entity. In EF Core 2.0 it was possible: ``` var spParams = new...
- Modified
- 2 Oct at 18:40
ServerEvents - Last message not being recieved until heartbeat
Extension on : [Original post](https://stackoverflow.com/questions/58165887/final-message-in-server-events-not-being-pushed-until-heartbeat?noredirect=1#comment102721383_58165887) We are having an is...
- Modified
- 2 Oct at 13:28
List Vs Detail DTO
I'm using ServiceStack for creating my first API. In my service the user can enter new orders and retrieve those he has already executed. Each order has a very complex structure made up of various fie...
- Modified
- 20 Jun at 09:12
Ormlite Descending Index
Is it possible to define a descending index in OrmLite? I can only see the `[Index]` attribute but I have a table of over 1 million records and need a descending index.
- Modified
- 2 Oct at 10:36
Blazor onclick event not triggered
I try to implement a simple onclick event handler like this sample [https://blazorfiddle.com/s/counter](https://blazorfiddle.com/s/counter) but not working in my solution. The event is only triggered ...
Blazor TwoWay Binding on custom Component
I'm creating a blazor server side app and have problems to bind a value between two custom components. I've looked through different example of how the bind or @bind is supposed to work but I cannot ...
- Modified
- 2 Oct at 07:14
How to treat ALL C# 8 nullable reference warnings as errors?
Using Visual Studio 2019 v16.3.2 with a .NET Core 3.0 project set to C# 8 and nullable reference types enabled. ``` <PropertyGroup> <TargetFramework>netcoreapp3.0</TargetFramework> <LangVersio...
- Modified
- 20 Jun at 09:12
How to fix "set SameSite cookie to none" warning?
I created a chrome extension and from popup.js I called PHP script (Using Xhttprequest) that reads the cookie. Like this: ``` $cookie_name = "mycookie"; if(isset($_COOKIE[$cookie_name])) { echo ...
ASP.NET Core 3.0 app not working on Windows Server 2012 R2 due to ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY
I took a working ASP.NET Core 2.2 app, upgraded it to 3.0 and suddenly the app no longer works in Windows Server 2012. It comes up with the following: `ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY` Chrom...
- Modified
- 2 Oct at 11:27
No UseDatabaseErrorPage() extension method in Net Core 3.0
I have created Net Core 3.0 app and following code that worked in 2.2 now is not. ``` app.UseDatabaseErrorPage(); ``` Looks like in 3.0 class `DatabaseErrorPageExtensions` does not exist within `Mi...
- Modified
- 1 Oct at 11:46
How to setup app settings in a .Net Core 3 Worker Service
I have been looking at a number of tutorials and SO questions (such as [App Settings .Net Core](https://stackoverflow.com/questions/48778144/app-settings-net-core)) regarding reading appsettings.json ...
- Modified
- 5 Feb at 19:25
ASP.NET Core Identity - Creating user "manually" and providing password hash - How to generate hash correctly?
I must create user manually: But the thing is that when I try to log into that account my password doesn't work. I **copied Password's hash of User account that I know password to** and then I pasted ...
- Modified
- 7 May at 05:41
Prevent a Console App (.NET Core) from printing "exited with code 0." in VS2019 and VS2022
When I start a Console App (.NET Core) with Ctrl+F5 (Start Without Debugging) in Visual Studio Community 2019 (Version 16.3.1), the following message is appended in the Console window at the end: > C:...
- Modified
- 15 Nov at 20:3
ASP.NET Core 3: How to reference 3.0.0 assemblies in custom libraries?
I see that applications that reference the `Microsoft.AspNetCore.App` framework (AKA ASP.NET Core 3.0) uses types from the assembly `Microsoft.AspNetCore.Mvc.Abstractions, Version=3.0.0.0,` [](https:/...
- Modified
- 20 Jun at 09:12
Is there any hot reload for blazor server-side?
I have just one, quick question. Is there way to hot reload a blazor app? At least, .razor files? Now I'm hosting my app on local IIS (not IIS express). I was looking through internet, but i didn't f...
- Modified
- 12 Feb at 23:7
How to use C# 8.0 Nullable Reference Types with Entity Framework Core models?
I am enabling C# 8.0 Nullable Reference Types on a .NET Core 3.0 project. The project uses Entity Framework Core 3.0 to access database. The following is a data model whose Title should not be null. ...
- Modified
- 30 Sep at 17:12
ServiceStack 5 with .NET Core 3.0 doesnt seem to work
Not sure if anyone else had this problem. I have a very simple ServiceStack service ``` public VersionResponse Get(VersionRequest request) { Assembly assembly = Assembly.GetExecutingAssembly(); ...
- Modified
- 30 Sep at 16:23