2019年8月28日

AutoMapper Console Sample

摘要: 方法1: 方法2: 阅读全文

posted @ 2019-08-28 20:28 杨志农 阅读(284) 评论(0) 推荐(0)

AutoMapper 值转换器

摘要: Type converter = Func<TSource, TDestination, TDestination> // 全局 Value resolver = Func<TSource, TDestination, TDestinationMember> // Member value reso 阅读全文

posted @ 2019-08-28 20:23 杨志农 阅读(357) 评论(0) 推荐(0)

字符串扩展方法

摘要: public static class StringExtensions { private delegate bool TypeParseDelegate<T>(string s, out T result); private static T To<T>(string value, TypeParseDelegate<T> parse, T def = default) { return pa 阅读全文

posted @ 2019-08-28 20:19 杨志农 阅读(289) 评论(0) 推荐(0)

dotnet core 在centos7中docker布署

摘要: yum -y install docker#如果要安装docker-ce 参照 https://docs.docker.com/install/linux/docker-ce/centos/ systemctl start docker systemctl stop firewalld.servic 阅读全文

posted @ 2019-08-28 20:13 杨志农 阅读(222) 评论(0) 推荐(0)

gitlab 安装

摘要: 目前使用中感觉亮眼的功能: 1作为私有代码仓库 2软件项目管理 3持续集成安装: 1.环境 至少要4G内存 2.直接下载虚机映像: https://downloads.bitnami.com/files/stacks/gitlab/11.11.3-0/bitnami-gitlab-11.11.3-0 阅读全文

posted @ 2019-08-28 20:10 杨志农 阅读(156) 评论(0) 推荐(0)

自建Nuget包源

摘要: 一些内部使用组件, 统一管理,自动升级. 1. 新建空的asp.net Web项目,添加引用 NuGet.Server, 发布这个网站到IIS上。 2.安装NuGet Package Explore 以管理员身份打开powershell set-executionpolicy remotesigne 阅读全文

posted @ 2019-08-28 20:09 杨志农 阅读(707) 评论(0) 推荐(0)

EF Core 临时表操作

摘要: 网上找了两个, 一个内存表, 一个临时表.1 安装包: EntityFrameworkCore.MemoryJoin //内存表 直接用select union拼接查询 http://tsherlock.tech/2018/03/20/joining-in-memory-list-to-entity 阅读全文

posted @ 2019-08-28 20:07 杨志农 阅读(1801) 评论(1) 推荐(0)

git rebase使用

摘要: 1. 分支之间 rebase git checkout feature git rebase -i master 解决冲突 git checkout master git rebase -i feature2. 同一分支 rebase a.删除提交 git rebase -i HEAD~3 找到节点 阅读全文

posted @ 2019-08-28 09:10 杨志农 阅读(222) 评论(0) 推荐(0)

git初始设置

摘要: 1解决不能输入密码问题,密码不能保存 git config --global credential.helper wincred git config --global credential.helper wincred 然后windows控制面板,管理凭据,删除遗留的凭据。 2解决git bash 阅读全文

posted @ 2019-08-28 09:05 杨志农 阅读(295) 评论(0) 推荐(0)

EF Core 临时表操作

摘要: 网上找了两个, 一个内存表, 一个临时表.1 安装包: EntityFrameworkCore.MemoryJoin //内存表 直接用select union拼接查询 http://tsherlock.tech/2018/03/20/joining-in-memory-list-to-entity 阅读全文

posted @ 2019-08-28 08:59 杨志农 阅读(282) 评论(0) 推荐(0)

导航