2020年9月23日

netcore 依据注解自动注入

摘要: DbCtxt.ConnStr = Configuration.GetSection("ConnectionString").Value; // 根据类是否添加注解[IsService]来自动注入 var assm = new[] { typeof(Program).Assembly, typeof( 阅读全文

posted @ 2020-09-23 07:44 jonney_wang 阅读(596) 评论(0) 推荐(0) 编辑

导航