摘要:
安装两个NuGet: Microsoft.EntityFrameworkCore.SqlServer Microsoft.EntityFrameworkCore.Tools 1.创建一个Book.cs文件 using System; using System.Collections.Generic; 阅读全文
摘要:
using System; namespace ConsoleApp1 { public class Program { /* 静态方法 (static): 特点: 1.生命周期,一旦创建--应用结束才会销毁 2.可全局使用 3.效率高 用处: 用户登陆信息,系统配置信息,系统设置,SqlHelpe 阅读全文
摘要:
1. 再Program.cs 文件中添加 using WebApplication1.Webapi.Utility.ApiVersions; var builder = WebApplication.CreateBuilder(args); // Add services to the contai 阅读全文
摘要:
目录结构 定义泛型反射 ToModel.cs文件 using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threadi 阅读全文