blazor

Cannot find the fallback endpoint specified by route values: { page: /_Host, area: }

馋奶兔 提交于 2020-12-06 06:34:28
问题 I use This Project and created a project exactly like it, But receive Cannot find the fallback endpoint specified by route values: { page: /_Host, area: }. Error when I start the project, In the startup configure method I have: app.UseEndpoints(endpoints => { endpoints.MapBlazorHub(); endpoints.MapDefaultControllerRoute(); endpoints.MapFallbackToPage("/_Host"); }); How to resolve this error? 回答1: Make sure that you have <base href="~/" /> declaration inside the <head /> tag in your _Host

Combining MVC + Blazor in the same project

隐身守侯 提交于 2020-12-01 02:53:25
问题 Our current application is now running on ASP.NET Core (MVC) and I was wondering is there will be an offical way to use MVC and Blazor (client side) in the same project? The reason why I want to do that is because we won't be able to migrated from MVC to Blazor in one big bang since, the application is just too big. I was thinking on a step by step transition from MVC to Blazor. Just not sure if this will be possible? 回答1: This is definitely now possible for server-side Blazor, Chris Sainty's

Combining MVC + Blazor in the same project

≯℡__Kan透↙ 提交于 2020-12-01 02:50:14
问题 Our current application is now running on ASP.NET Core (MVC) and I was wondering is there will be an offical way to use MVC and Blazor (client side) in the same project? The reason why I want to do that is because we won't be able to migrated from MVC to Blazor in one big bang since, the application is just too big. I was thinking on a step by step transition from MVC to Blazor. Just not sure if this will be possible? 回答1: This is definitely now possible for server-side Blazor, Chris Sainty's

Combining MVC + Blazor in the same project

自闭症网瘾萝莉.ら 提交于 2020-12-01 02:49:11
问题 Our current application is now running on ASP.NET Core (MVC) and I was wondering is there will be an offical way to use MVC and Blazor (client side) in the same project? The reason why I want to do that is because we won't be able to migrated from MVC to Blazor in one big bang since, the application is just too big. I was thinking on a step by step transition from MVC to Blazor. Just not sure if this will be possible? 回答1: This is definitely now possible for server-side Blazor, Chris Sainty's

How to handle Table row selected changed?

落爺英雄遲暮 提交于 2020-11-29 19:24:22
问题 How to handle row selected changed event for a table using Blazor? I tried handling @onchange as well as @onselectionchange. The syntax for the table looks like this: <table class="table" @onchange="@this.SelectionChanged"> 回答1: Your event binding doesn't work because the table element does not emit change events. Instead, you could add an input element (for example a checkbox) inside your table rows. You can then handle row selection changes by adding your event binding to the input elements

How to handle Table row selected changed?

感情迁移 提交于 2020-11-29 19:09:10
问题 How to handle row selected changed event for a table using Blazor? I tried handling @onchange as well as @onselectionchange. The syntax for the table looks like this: <table class="table" @onchange="@this.SelectionChanged"> 回答1: Your event binding doesn't work because the table element does not emit change events. Instead, you could add an input element (for example a checkbox) inside your table rows. You can then handle row selection changes by adding your event binding to the input elements

How to handle Table row selected changed?

自古美人都是妖i 提交于 2020-11-29 19:06:16
问题 How to handle row selected changed event for a table using Blazor? I tried handling @onchange as well as @onselectionchange. The syntax for the table looks like this: <table class="table" @onchange="@this.SelectionChanged"> 回答1: Your event binding doesn't work because the table element does not emit change events. Instead, you could add an input element (for example a checkbox) inside your table rows. You can then handle row selection changes by adding your event binding to the input elements

Load child entity on the fetch of the Parent entity EFCore

筅森魡賤 提交于 2020-11-29 09:39:11
问题 I have the below model. What is the better way to load the parent entity with child entity at the time of fetching from the DB with find method? Parent Entity: public class Client { public int Id { get; set; } public string LastName { get; set; } public string Gender { get; set; } public DateTime DateOfBirth { get; set; } public Address Address { get; set; } } Child Entity: public class Address { public int Id { get; set; } public string FirstLine { get; set; } public string SecondLine { get;

Azure CI pipeline for Blazor .NET 5 doesn't work

夙愿已清 提交于 2020-11-29 05:29:55
问题 I have an existing Azure CI pipeline for a WebAssembly Blazor application, that works with .NET Core 3.1. I upgraded the application to use .NET 5 RC, and the pipeline doesn't work anymore. Following suggestions, I removed the NuGet task, and I inserted two new tasks: - task: UseDotNet@2 displayName: 'Use .NET Core sdk 5.0.100-rc.1.20452.10' inputs: version: '5.0.100-rc.1.20452.10' includePreviewVersions: true - task: DotNetCoreCLI@2 displayName: 'dotnet restore' inputs: command: restore

Azure CI pipeline for Blazor .NET 5 doesn't work

生来就可爱ヽ(ⅴ<●) 提交于 2020-11-29 05:28:53
问题 I have an existing Azure CI pipeline for a WebAssembly Blazor application, that works with .NET Core 3.1. I upgraded the application to use .NET 5 RC, and the pipeline doesn't work anymore. Following suggestions, I removed the NuGet task, and I inserted two new tasks: - task: UseDotNet@2 displayName: 'Use .NET Core sdk 5.0.100-rc.1.20452.10' inputs: version: '5.0.100-rc.1.20452.10' includePreviewVersions: true - task: DotNetCoreCLI@2 displayName: 'dotnet restore' inputs: command: restore