摘要: 省略接口和类的实现,具体如上图: using Autofac;using System;using System.Linq;using System.Reflection;namespace autofacBatchResolver{ class Program { static void Main 阅读全文
posted @ 2020-11-04 14:09 丹心石 阅读(1031) 评论(0) 推荐(0)
摘要: 1.创建一个控制台项目 AutofacConsole 2.创建文件夹Abstract,在文件夹中创建接口 namespace AutofacConsole.Abstract{ public interface IDatabase { string Name { get; } void Select( 阅读全文
posted @ 2020-11-04 10:39 丹心石 阅读(280) 评论(0) 推荐(0)
摘要: 1.首先创建一个类库,用于创建模型 Contact using System; namespace Common{ public class Contact { public string Id { get; set; } public string Name { get; set; } publi 阅读全文
posted @ 2020-10-30 17:03 丹心石 阅读(252) 评论(0) 推荐(0)
摘要: AutoFac 阅读全文
posted @ 2020-10-29 11:08 丹心石 阅读(242) 评论(0) 推荐(0)
摘要: MySql EF 阅读全文
posted @ 2020-10-25 22:03 丹心石 阅读(837) 评论(0) 推荐(0)
摘要: 1.启动顺寻 public class program{ public static void Main(string[] args) CreateWebHostBuilder(args).Build().Run(); } public static IWebHostBuilder CreateWe 阅读全文
posted @ 2020-10-15 21:44 丹心石 阅读(312) 评论(0) 推荐(0)
摘要: 简单的认证设置: 1.在Web.config配置文件中增加 <authentication mode="Forms"> <forms loginUrl="~/Account/Login" timeout="2880"> <credentials passwordFormat="Clear"> <us 阅读全文
posted @ 2020-10-07 14:11 丹心石 阅读(117) 评论(0) 推荐(0)
摘要: <div ng-app="" ng-init="firstname='John'"> <p>名字:<input type="text" ng-model="name"></p> <h1> hello {{name}}</h1> <p ng-bind="name"></p> <p><span ng-b 阅读全文
posted @ 2020-09-29 13:45 丹心石 阅读(73) 评论(0) 推荐(0)
摘要: 1.Configure方法中IApplicationBuilder app app.Run(async context=>{ await context.Response.WriteAsync("test"); }) 与 app.UseEndpoints(endpoints=>endpoints.M 阅读全文
posted @ 2020-09-28 22:11 丹心石 阅读(132) 评论(0) 推荐(0)
摘要: 安装 VS Code 更新包列表和安装依赖 sudo apt update sudo apt install software-properties-common apt-transport-https wget 得到 Microsoft GPG key wget -q https://packag 阅读全文
posted @ 2020-09-28 15:07 丹心石 阅读(283) 评论(0) 推荐(0)