自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 收藏
  • 关注

转载 aspnetcore 刷新Session Id总是改变

public class Startup { public Startup(IConfiguration configuration) { Configuration = configuration; } public IConfiguration Configuratio...

2019-01-06 17:12:00 1160

转载 生成数据库自增不重复ID的方法

namespace ConsoleApp1{ class Program { static void Main(string[] args) { var list = new HashSet<string>(101); for (int i = 0; i &lt...

2018-11-03 20:26:00 743

转载 Your project specifies TypeScriptToolsVersion 2.3, but a matching compiler ...... 出现这种警告解决方式...

转载于:https://www.cnblogs.com/hanstar/p/9795744.html

2018-10-16 02:10:00 474

转载 HiLoGenerator生成id

using System.Linq;namespace Product.Host{ public class HiLoGenerator { private const int HiLoIncrement = 10; private int _sequenceId = -1; private int...

2018-09-01 12:10:00 191

转载 c# Inner Join sql 和 Enumerable.Join

using System;using System.Collections.Generic;using System.Linq;namespace ConsoleApp1{ class Program { static void Main(string[] args) { var...

2018-08-20 11:30:00 311

转载 IQueryable.Where中动态生成多个并或筛选Expression<Func<T, bool>>

直接上图转载于:https://www.cnblogs.com/hanstar/p/8344265.html

2018-01-25 00:14:00 1264

转载 mvc区分页面内请求判断是否是Html.action或Html.RenderAction请求

ControllerContext.IsChildAction 来判断,如果用Html.Action或Html.RenderAction方法,这个属性返回true,否则返回false 转载于:https://www.cnblogs.com/hanstar/p/8244232.html...

2018-01-08 18:46:00 148

转载 多个数据库 migration

More than one DbContext was found. Specify which one to use. Use the '-Context' parameter for PowerShell commands and the '--context' parameter for dotnet commands.转载于:https://www.cnblogs....

2017-12-30 13:42:00 211

转载 最好的导航分割栏,分割线,实现底部透明,纯css

<div class="Ui_Ct_Line padding_5"> <div>为您推荐</div></div>.Ui_Ct_Line { -ms-flex-align: center !important; align-items: center !important; ...

2017-12-28 14:39:00 324

转载 ASP.NET MVC ActionFilterAttribute 方法解释(区别)

1.OnActionExecuting 在Action方法调用前使用,使用场景:如何验证登录等。 2.OnActionExecuted 在Action方法调用后,result方法调用前执行,使用场景:异常处理。 3.OnResultExecuting在result执行前发生(在view呈现前),使用场景:设置客户端缓存,服务...

2017-12-21 19:33:00 248

转载 C# 与 JS 之间传值在 cshtml页面中

@{ string It = "sss"; var IT = 1;}@functions{ string Mod = "ajssaioi"; public string Itmodel = "aisaoaopp"; public string GetToken() { return "s...

2017-12-19 00:31:00 1500

转载 <a>标签 IOS 安卓 亲测有效

一、普通链接<ahref="http://www.baidu.com">百度</a>二、邮件链接1.标签最简式<ahref="mailto:xxx@xx.com">联系站长</a>2.标签帮你填抄送地址<ahref="mailto:xxx@xx.com?cc=xxxx@xx.com"&g...

2017-12-13 16:02:00 456

转载 vs项目依赖项黄色感叹号解决方案

右键项目解决方案,生成解决方案或重新生成解决方案,黄色感叹号消失,依赖项生效,亲测有效转载于:https://www.cnblogs.com/hanstar/p/8010481.html

2017-12-09 03:15:00 4334

转载 时间正则表达式2017-10-28 12:24 或 2017-9-2 8:20

^([2-9][\d]{3})-(((0?[13578]|1[02])-(0?[1-9]|[12][0-9]|3[01]))|((0?[469]|11)-(0?[1-9]|[12][0-9]|30))|(0?2-(0?[1-9]|[1][0-9]|2[0-8])))[ ](2[0123]|1[\d]|0?[0-9])[:]([1-5][0-9]|0?[0-9])$转载于:https:...

2017-11-07 16:11:00 108

转载 Guid几种格式及之间的互换,以及利用Base64缩短guid的长度到22个字符和还原

1、Guid.NewGuid().ToString("N") 结果为: 38bddf48f43c48588e0d78761eaa1ce62、Guid.NewGuid().ToString("D") 和 Guid.NewGuid().ToString() 结果为: 57d99d89-caab-482a-a0e9-a0a803eed3ba3、G...

2017-11-04 19:54:00 968

转载 转载《Flex 布局》

网页布局(layout)是 CSS 的一个重点应用。 布局的传统解决方案,基于盒状模型,依赖 display 属性 + position属性 + float属性。它对于那些特殊布局非常不方便,比如,垂直居中就不容易实现。2009年,W3C 提出了一种新的方案----Flex 布局,可以简便、完整、响应式地实现各种页面布局。目前,它已经得到了所有浏览器的支持,这意味...

2017-11-01 16:55:00 77

转载 Uncaught Error: Bootstrap dropdown require Popper.js

Bootstrap 要求Popper.js如果安装了Popper.js还报错,肯定就是Popper的问题https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js请粘贴上面的js代码到Popper.min.js里面去/* Copyright (C) Federico Zivolo 2017 Distri...

2017-11-01 15:25:00 427

转载 ASP.NET CORE配置用户密码验证

在class Startup 中配置public void ConfigureServices(IServiceCollection services) { services.AddDbContext<ApplicationDbContext>(options => options....

2017-10-04 11:39:00 470

转载 asp core 配置用户密码验证

1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Threading.Tasks; 5 using Microsoft.AspNetCore.Builder; 6 using Microsoft.AspNetCore.Identity;...

2017-09-28 13:36:00 92

转载 jQuery - parents() 获得最近的祖先元素方法

答案 : parents()[0]<div class="pg-ins layer p_close"> <div class="sign_con"> <div class="s_close" onclick="Close(this);"> <div class="...

2017-08-15 17:36:00 173

转载 textarea 绕过jq验证的方法,提交空值

1 <textarea placeholder="填写其它原因" class="notes Font-Min valid" cols="20" data-val="true" data-val-required="填写其它原因内容" id="OtherNotes" name="OtherNotes" rows="2" aria-required="true" aria-desc...

2017-07-19 15:07:00 116

转载 QQ Music 音乐插件DFX unable to open skin configration 的解决方法

设置C:\Program Files (x86)\Tencent\QQMusic\Plugins\Dfx\dfx_skin.txt 它的权限 允许程序读取执行转载于:https://www.cnblogs.com/hanstar/p/6901655.html

2017-05-24 23:58:00 125

转载 form 利用BeginCollectionItem提交集合List<T>数据 以及提交的集合中含有集合的数据类型 如List<List<T>> 数据的解决方案...

例子: public class IssArgs { public List<IssTabArgs> Tabs { get; set; } } public class IssTabArgs { public int Num { get; set; } public ...

2017-04-29 21:51:00 233

转载 Jquery UI sortable

所有的事件回调函数都有两个参数:event和ui,浏览器自有event对象,和经过封装的ui对象 ui.helper - 表示sortable元素的JQuery对象,通常是当前元素的克隆对象 ui.position - 表示相对当前对象,鼠标的坐标值对象{top,left} ui.offset - 表示相对于当前页面,鼠标的坐标值对象{top,left} ui.item...

2017-04-13 00:45:00 166

转载 关于使用 AJax 生成Form表单,且表单提交需要验证,验证实效的解决方法

@Ajax.ActionLink("添加", "AddUser",new AjaxOptions() {InsertionMode = InsertionMode.Replace,UpdateTargetId = "pop-up", OnComplete = "ReValidate" })Js: function ReValidate() { $.validator...

2017-03-19 20:35:00 89

转载 在 Microsoft.VisualStudio.Setup.Engine.Install(Product product, String destination, CancellationToken...

在所在的安装目录根目录下搜索实例 如20cc4971 将文件夹全部删除。一般默认安装在C盘,所以在C盘搜索实例文件夹,将其全部删除。转载于:https://www.cnblogs.com/hanstar/p/6519232.html...

2017-03-08 14:15:00 201

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除