为了访问sqlite,我们需要在Nuget中安装Microsoftr的EntityFrameworkCore、EntityFrameworkCore.Sqlite、EntityFrameworkCore.Sqlite.Core 在SharedLibrary的Models里增加employee using System;using System.Collections.Gener
在BlazorApp1增加文件夹data,里面增加类dbcont using SharedLibrary.Models;using System.Collections.Generic;using Microsoft.EntityFrameworkCore;namespace BlazorApp1.data{public class dbcont : DbContext{public db
参考: ASP.NET Core 6.0 Blazor Server APP并使用MySQL数据库_blazor mysql-CSDN博客 https://blog.csdn.net/mzl87/article/details/129199352 本地环境:win10, visual studio 2022 community, mysql 8.0.33 (MySQL Community Ser