last changes before removing from memory and adding to db
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,8 @@
|
|||||||
@page "/accounts"
|
@page "/accounts"
|
||||||
@inherits ActLogic
|
@using SqliteWasmHelper
|
||||||
|
@using BlazorWasmExample.Data
|
||||||
|
@using Microsoft.EntityFrameworkCore
|
||||||
|
@inject ISqliteWasmDbContextFactory<ThingContext> Factory
|
||||||
|
|
||||||
<PageTitle>Accounts</PageTitle>
|
<PageTitle>Accounts</PageTitle>
|
||||||
|
|
||||||
@ -45,12 +48,6 @@
|
|||||||
</body>
|
</body>
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
// Using Cascading Parameters
|
|
||||||
[Parameter]
|
|
||||||
public string? Account;
|
|
||||||
[CascadingParameter]
|
|
||||||
public string? AccountTask;
|
|
||||||
[CascadingParameter]
|
|
||||||
public string? TaskNote;
|
public string? TaskNote;
|
||||||
private string? newAccount;
|
private string? newAccount;
|
||||||
private List<Account> accounts = new List<Account>();
|
private List<Account> accounts = new List<Account>();
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
using Microsoft.AspNetCore.Components;
|
using Microsoft.AspNetCore.Components;
|
||||||
using Microsoft.AspNetCore.Components.Web;
|
using Microsoft.AspNetCore.Components.Web;
|
||||||
using TodoList.Data;
|
using TodoList.Data;
|
||||||
|
using SqliteWasmHelper;
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
@ -8,6 +9,8 @@ var builder = WebApplication.CreateBuilder(args);
|
|||||||
builder.Services.AddRazorPages();
|
builder.Services.AddRazorPages();
|
||||||
builder.Services.AddServerSideBlazor();
|
builder.Services.AddServerSideBlazor();
|
||||||
builder.Services.AddSingleton<WeatherForecastService>();
|
builder.Services.AddSingleton<WeatherForecastService>();
|
||||||
|
builder.Services.AddSqliteWasmDbContextFactory<ThingContext>(
|
||||||
|
opts => opts.UseSqlite("Data Source=blazor_todo.sqlite3"));
|
||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|
||||||
|
|||||||
@ -4,11 +4,12 @@
|
|||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<WasmBuildNative>true</WasmBuildNative
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Radzen.Blazor" Version="3.18.15" />
|
<PackageReference Include="Radzen.Blazor" Version="3.18.15" />
|
||||||
<PackageReference Include="sqlite-helper" Version="1.3.0" />
|
<PackageReference Include="sqlite-helper" Version="1.3.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@ -358,6 +358,39 @@
|
|||||||
"Components.NameMatch": "Components.FullyQualifiedNameMatch"
|
"Components.NameMatch": "Components.FullyQualifiedNameMatch"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"HashCode": -850474101,
|
||||||
|
"Kind": "Components.Component",
|
||||||
|
"Name": "__GeneratedComponent.AspNetCore_6f55647a24fc3d69b0dc4cb39334dbc68a36af0f",
|
||||||
|
"AssemblyName": "TodoList",
|
||||||
|
"CaseSensitive": true,
|
||||||
|
"TagMatchingRules": [
|
||||||
|
{
|
||||||
|
"TagName": "AspNetCore_6f55647a24fc3d69b0dc4cb39334dbc68a36af0f"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"Metadata": {
|
||||||
|
"Runtime.Name": "Components.IComponent",
|
||||||
|
"Common.TypeName": "__GeneratedComponent.AspNetCore_6f55647a24fc3d69b0dc4cb39334dbc68a36af0f"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HashCode": 1349245139,
|
||||||
|
"Kind": "Components.Component",
|
||||||
|
"Name": "__GeneratedComponent.AspNetCore_6f55647a24fc3d69b0dc4cb39334dbc68a36af0f",
|
||||||
|
"AssemblyName": "TodoList",
|
||||||
|
"CaseSensitive": true,
|
||||||
|
"TagMatchingRules": [
|
||||||
|
{
|
||||||
|
"TagName": "__GeneratedComponent.AspNetCore_6f55647a24fc3d69b0dc4cb39334dbc68a36af0f"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"Metadata": {
|
||||||
|
"Runtime.Name": "Components.IComponent",
|
||||||
|
"Common.TypeName": "__GeneratedComponent.AspNetCore_6f55647a24fc3d69b0dc4cb39334dbc68a36af0f",
|
||||||
|
"Components.NameMatch": "Components.FullyQualifiedNameMatch"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"HashCode": 1178284997,
|
"HashCode": 1178284997,
|
||||||
"Kind": "Components.Component",
|
"Kind": "Components.Component",
|
||||||
|
|||||||
Reference in New Issue
Block a user