The general usage format is int pagesize = page size (size of each page)int pageindex = the page number (this variable generally increments with eac[......]继续阅读
The general usage format is int pagesize = page size (size of each page)int pageindex = the page number (this variable generally increments with eac[......]继续阅读
一般使用格式为 int pagesize = 分页大小(每一页大小)int pageindex = 第几页(一般这个变量是随循环递增的) 使用方法.Skip(pagesize*pageindex).Take(pagesize) .Skip() 忽略数,表示从哪里开始分[......] 继续阅读
使用app.UseFileServer 在 public void Configure(){}中,修改或添加 1 app.UseFileServer(new FileServerOptions() 2 { 3 FileProvide[......]继续阅读
Using app.UseFileServer In public void Configure(){} modify or add 1 app.UseFileServer(new FileServerOptions() 2 { 3[......]继续阅读
关于ListBox ListBox是WinForm中的 列表 控件,它提供了一个项目列表(一组数据项),用户可以选择一个或者多个条目,当列表项目过多时,ListBox会自动添加滚动条,使用户可以滚动查阅所有选项。ListBox可以预先设定列表内容,也可以绑定其他控件或数据库,自动[......] 继续阅读
About ListBox ListBox is a list control in WinForm that provides a list of items (a set of data items) from which users can select one or more entries[......] 继续阅读
Exploring char and string in C# [TOC] 1. System.Char Character char is an alias for System.Char. System.Char occupies two bytes, which is 16 binary bi[......] 继续阅读
探究 C# 中的 char 、 string(一) [TOC] 1. System.Char 字符 char 是 System.Char 的别名。 System.Char 占两个字节,16个二进制位。 System.Char 用来表示、存储一个 Unicode 字符。 System.Char 的表示[......] 继续阅读
For context classes, there should be an overloaded base(options) constructor. public partial class DatabaseContext : DbContext { publi[......]继续阅读
对于上下文类,要有一个 base(options) 构造函数重载。 public partial class DatabaseContext : DbContext { public DatabaseContext() { }[......]继续阅读
// Set up client HttpClient client = new HttpClient(); client.DefaultRequestHeaders.Authorization =[......]继续阅读
// 设置 client HttpClient client = new HttpClient(); client.DefaultRequestHeaders.Authorization = new[......]继续阅读
Common Value Types Value type variables can be directly assigned a value. They are derived from the class System.ValueType. | Type | Description[......] 继续阅读
常用值类型(Value types) 值类型变量可以直接分配给一个值。它们是从类 System.ValueType 中派生的。 类型 描述 范围 默认值 bool 布尔值 True 或 False False byte 8 位无符号整数 0 到 255 0 char 16 位[......] 继续阅读
https://docs.microsoft.com/zh-cn/aspnet/core/fundamentals/logging/?view=aspnetcore-2.2#nuget-packages NuGet 包 ILogger 和 ILoggerFactory 接口位于 Microsoft.[......] 继续阅读
NuGet Packages The ILogger and ILoggerFactory interfaces are located in Microsoft.Extensions.Logging.Abstractions, with their default implementation f[......] 继续阅读
https://docs.microsoft.com/zh-cn/ef/core/miscellaneous/configuring-dbcontext 有两种配置方式,一种是 Dbcontext 构造函数和依赖注入同时使用。 public void ConfigureServices(IServi[......] 继续阅读
有两种配置方式,一种是 DbContext 构造函数和依赖注入同时使用。 public void ConfigureServices(IServiceCollection services) 另一种是在 OnConfiguring 内配置使用。 [......] 继续阅读