上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页
摘要: Docker的那些事儿 https://www.jianshu.com/c/22a55b9b3f9a 阅读全文
posted @ 2019-08-07 23:33 清晨时光 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 首先,现有的三层项目的结构 其中 Repository public interface IPersonRepository { string Eat(); } public class PersonRepository : IPersonRepository { public string Eat 阅读全文
posted @ 2019-08-01 20:59 清晨时光 阅读(7109) 评论(2) 推荐(2) 编辑
摘要: # su postgres psql postgres=# ALTER USER postgres WITH PASSWORD 'postgres'; postgres=# \q 阅读全文
posted @ 2019-07-22 20:53 清晨时光 阅读(839) 评论(0) 推荐(0) 编辑
摘要: #拉取runtime父镜像,运行aspnet core应用必须要用runtimeFROM microsoft/dotnet:2.2-aspnetcore-runtime#设置容器工作目录WORKDIR /DockerDemo#把当前目录的所有文件copy到工作目录中COPY . /DockerDem 阅读全文
posted @ 2019-07-22 15:37 清晨时光 阅读(327) 评论(0) 推荐(0) 编辑
摘要: docker ps 列出所有在运行的容器信息 docker start :启动一个或多个已经被停止的容器 docker stop :停止一个运行中的容器 docker restart :重启容器 docker rm :删除一个或多个容器。(-v :删除与容器关联的卷。)(-f :强制删除。) doc 阅读全文
posted @ 2019-07-21 22:34 清晨时光 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1、在使用ef做查询时候,如果单单只是将结果数据用于展示不用后续更新操作,可以使用AsNoTracking可以提高查询效率。 比如 2、批量更新时候,如果更新的只是某几个字段,不用全表所有字段更新。当然这里批量更新使用的z.entityframework.core。 阅读全文
posted @ 2019-03-17 10:48 清晨时光 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 1、定义扩展类 2、为扩展的abpssion填充数据,可以在全局入口或者过滤器中定义。这里我使用action过滤器来做。 这样,就可以直接在应用层通过AbpSession或者在表示层构造函数注入IAbpSession来获取扩展字段的值了。 阅读全文
posted @ 2019-01-27 17:45 清晨时光 阅读(699) 评论(0) 推荐(0) 编辑
摘要: 转自https://www.cnblogs.com/yaopengfei/p/7751545.html 一. 综述 该模块主要介绍:EF的性能优化插件Z.EntityFramework.Extensions,该插件收费。 (一). 简介 1. 相关网站:http://www.zzzprojects. 阅读全文
posted @ 2019-01-27 10:29 清晨时光 阅读(2308) 评论(0) 推荐(0) 编辑
摘要: 一、针对.net core中post类型的api注意的地方(前提是Controller上加[ApiController]特性)。默认是这个。 1、如果客户端Content-Type是application/json, api接口如果是用单个对象做参数的时候,加或者不加[FromBody]都可以正常解 阅读全文
posted @ 2019-01-25 22:51 清晨时光 阅读(22800) 评论(3) 推荐(8) 编辑
摘要: 今天搞了一天!因为乱码问题。其实设置很简单,不能用Encoding.uf8编码,而应该用gb2312。在framework中用gb2312没问题,但是在.net core中却会抛出异常。 找到解决方案如下: 第一步 向项目中添加如下包: System.Text.Encoding.CodePages 阅读全文
posted @ 2019-01-24 23:32 清晨时光 阅读(711) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页