上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 73 下一页
摘要: 参考:https://docs.microsoft.com/zh cn/aspnet/core/tutorials/first web api?view=aspnetcore 2.1 官网的例子 直接去看,这里写用到的代码 创建一个model 创建数据库上下文 Register the databa 阅读全文
posted @ 2018-12-05 20:58 【唐】三三 阅读(1141) 评论(0) 推荐(0)
摘要: ASP.NET Core 中的日志记录 https://docs.microsoft.com/zh cn/aspnet/core/fundamentals/logging/?view=aspnetcore 2.1 日志级别:Trace 》Debug 》 Information 》Warning 》 阅读全文
posted @ 2018-12-03 21:52 【唐】三三 阅读(584) 评论(0) 推荐(0)
摘要: 缓存 缓存在内存中 ASP.NET Core 使用 内存中缓存是使用依赖关系注入从应用中引用的服务。 请在ConfigureServices中调用 : 在构造函数中请求 实例: 资料:https://docs.microsoft.com/zh cn/aspnet/core/performance/c 阅读全文
posted @ 2018-12-03 00:05 【唐】三三 阅读(1396) 评论(2) 推荐(0)
摘要: net core 中的依赖注入 Package Microsoft.Extensions.DependencyInjection ServiceCollection 用来构造容器对象 IServiceProvider 调用 ServiceCollection 的 BuildServiceProvid 阅读全文
posted @ 2018-12-01 19:11 【唐】三三 阅读(1211) 评论(0) 推荐(0)
摘要: 多对多配置 先安装 Install Package MySql.Data.EntityFrameworkCore 创建3个表 创建类 编写DbContext,ef core的DbContext等EF的核心类在using Microsoft.EntityFrameworkCore; 通过 这样的扩展方 阅读全文
posted @ 2018-11-29 23:22 【唐】三三 阅读(2354) 评论(0) 推荐(0)
摘要: setting.json 引用Nuget: 和`Microsoft.Extensions.Configuration.Json` 参考:https://docs.microsoft.com/zh cn/aspnet/core/fundamentals/configuration/index?view 阅读全文
posted @ 2018-11-29 16:37 【唐】三三 阅读(728) 评论(0) 推荐(0)
摘要: 1.安装图形界面 sudo apt get update 更新 1.[ 云服务器 ]——桌面安装:腾讯云服务器Gnome桌面安装与配置 https://blog.csdn.net/jdzwanghao/article/details/79875536?utm_source=blogxgwz1 2.腾 阅读全文
posted @ 2018-11-22 12:03 【唐】三三 阅读(9061) 评论(0) 推荐(3)
摘要: ``` using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.Common; using System.Data.SqlClient; using System.Linq; using Dapper; namespace DA... 阅读全文
posted @ 2018-11-17 00:06 【唐】三三 阅读(5873) 评论(0) 推荐(0)
摘要: 1.顺序表 只考虑线性表的基本操作,所以以C 接口的形式表示线性表,接口中的方法成员表示基本操作。 1.1 公共接口 为了和.NET框架中的接口IList相区分,在IList后面加了“DS”,“DS”表示数据结构。 1、求长度:GetLength() 初始条件:线性表存在; 操作结果:返回线性表中所 阅读全文
posted @ 2018-11-06 19:37 【唐】三三 阅读(415) 评论(0) 推荐(0)
摘要: EntityTypeConfiguration 它可以为一个实体类,配置一个模型。 Entity Framework 6 一次加载许多个 Fluent API 映射 如果对于许多实体有大量映射,则 OnModelCreating 中会有许多重复的 modelBuilder.Configuration 阅读全文
posted @ 2018-10-22 18:50 【唐】三三 阅读(1123) 评论(0) 推荐(1)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 73 下一页