上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 29 下一页
摘要: http://www.daocloud.io/ 阅读全文
posted @ 2016-07-25 06:36 shiningrise 阅读(226) 评论(0) 推荐(0)
摘要: 一直使用osharp,osharp3使用的是combguid,代码如下 但在事务应用场景,比如,我一次性导入10000个学生,我导入时时按学号排序的,,导入后,,在数据库中是乱序的,原因是因为用事务提交,他的提交时间是相同的,所以生成的combguid是乱序的 这个让我无法接受,网上找了一通,找到下 阅读全文
posted @ 2016-07-24 21:59 shiningrise 阅读(724) 评论(0) 推荐(0)
摘要: Productivity Power Tools 是微软官方推出的 Visual Studio 扩展 免费的精品: Productivity Power Tools 动画演示 阅读全文
posted @ 2016-07-24 21:28 shiningrise 阅读(168) 评论(0) 推荐(0)
摘要: 原文:http://www.asp.net/web-api/overview/error-handling/exception-handling This article describes error and exception handling in ASP.NET Web API. HttpR 阅读全文
posted @ 2016-07-22 17:49 shiningrise 阅读(491) 评论(0) 推荐(0)
摘要: public class validationActionFilter:ActionFilterAttribute { public override void OnActionExecuting(System.Web.Http.Controllers.HttpActionContext actionContext) { var m... 阅读全文
posted @ 2016-07-22 16:40 shiningrise 阅读(1041) 评论(0) 推荐(0)
摘要: https://blog.oneunicorn.com/2012/02/27/code-first-migrations-making-__migrationhistory-not-a-system-table/ Code First Migrations uses a table called _ 阅读全文
posted @ 2016-07-20 23:49 shiningrise 阅读(290) 评论(0) 推荐(0)
摘要: C# 6.0可能的新特性 1、主构造函数(Primary Constructors) 主构造函数给类中的变量赋值 Before public class Point { private int x, y; public Point(int x, int y) this.x = x; this.y = 阅读全文
posted @ 2016-07-20 23:34 shiningrise 阅读(214) 评论(0) 推荐(0)
摘要: public static Guid GenerateGuid() { byte[] guidArray = Guid.NewGuid().ToByteArray(); var baseDate = new DateTime(1900, 1, 1); DateTime now = DateTime.Now; var days = new TimeSpan(now... 阅读全文
posted @ 2016-07-20 22:57 shiningrise 阅读(3025) 评论(1) 推荐(0)
摘要: 启用外部程序: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe 命令行参数 /rootsuffix Exp 阅读全文
posted @ 2016-07-19 08:57 shiningrise 阅读(318) 评论(0) 推荐(0)
摘要: http://personball.com/powershell/2016/07/15/powershell-tips 阅读全文
posted @ 2016-07-19 07:22 shiningrise 阅读(484) 评论(0) 推荐(0)
摘要: ;Asynchronous Processing=true 不是异步查询吗,怎么是缓存 <!--<add name="default" providerName="System.Data.SqlClient" connectionString="Data Source=(localdb)\MSSQL 阅读全文
posted @ 2016-07-18 21:59 shiningrise 阅读(648) 评论(0) 推荐(0)
摘要: 原文:http://blog.csdn.net/xxj_jing/article/details/49508557 版权声明:本文为博主原创文章,未经博主允许不得转载。 版权声明:本文为博主原创文章,未经博主允许不得转载。 .net mvc web api 返回 json 内容时,好多属性为null 阅读全文
posted @ 2016-07-18 18:15 shiningrise 阅读(2468) 评论(0) 推荐(0)
摘要: http://blog.itpub.net/12639172/viewspace-490786/ 阅读全文
posted @ 2016-07-17 15:52 shiningrise 阅读(250) 评论(0) 推荐(0)
摘要: 1. 在.aspx中添加异步标记 2. 在.aspx.cs或者.ascx.cs(用户控件)中添加异步方法 3. 在.aspx.cs或者.ascx.cs的Page_Load或者OnLoad注册异步方法 搞定! 【参考资料】 How to create Asynchronous device Page 阅读全文
posted @ 2016-07-17 15:00 shiningrise 阅读(735) 评论(0) 推荐(0)
摘要: //当webapi作为一owin一部分运行时,下面这两句不能有,不然除了webapi,其它程序验证不了 //webapiConfig.SuppressDefaultHostAuthentication(); //webapiConfig.Filters.Add(new HostAuthenticat 阅读全文
posted @ 2016-07-15 16:29 shiningrise 阅读(2217) 评论(0) 推荐(0)
摘要: C#异常类相关总结 C#异常类相关总结 C#异常类一、基类ExceptionC#异常类二、常见的异常类1、SystemException类:该类是System命名空间中所有其他异常类的基类。(建议:公共语言运行时引发的异常通常用此类)2、ApplicationException类:该类表示应用程序发 阅读全文
posted @ 2016-07-14 18:13 shiningrise 阅读(378) 评论(0) 推荐(0)
摘要: 前言: 你先得知道HelpPageConfig文件,不知道说明你现在不需要这个,所以下文就不用看了,等知道了再看也不急.当然如果你很知道这个,下文也不用看了,因为你会了. 方法一: 方法二: 自定义一个支持从目录加载xml文档的XmlDocumentationProvider 使用方法: 使用方法: 阅读全文
posted @ 2016-07-14 17:24 shiningrise 阅读(892) 评论(0) 推荐(0)
摘要: Snippet Designer is a Visual Studio plug in which allows you to create and search for snippets inside the IDE https://visualstudiogallery.msdn.microso 阅读全文
posted @ 2016-07-14 15:43 shiningrise 阅读(263) 评论(0) 推荐(0)
摘要: (推荐使用正版.正版也不贵) 【工具】CodeSmith Generator 7.0.2激活步骤 学过三层的人应该认识CodeSmith Generator吧,今天我就跟大家一起探讨下CodeSmith Generator 7.0.2的激活,这最新版本破解的难度也是超越以往......具体看这篇日记 阅读全文
posted @ 2016-07-14 02:33 shiningrise 阅读(612) 评论(0) 推荐(0)
摘要: InnoSetup汉化语言包.zip 阅读全文
posted @ 2016-07-12 08:14 shiningrise 阅读(9835) 评论(0) 推荐(1)
摘要: var result = fruit.GroupBy(i => i.date) .Select(i => new { date = i.Key, no_of_apple = i.Where(j => j.fruit_code == "apple").Sum(k => k.count), ... 阅读全文
posted @ 2016-07-10 08:09 shiningrise 阅读(1870) 评论(0) 推荐(0)
摘要: Description DisplayName Display的关系 ? 阅读全文
posted @ 2016-07-09 01:59 shiningrise 阅读(575) 评论(0) 推荐(0)
摘要: http://hadb.me/2015/03/23/authenticationmanager-signout-not-working/ 这文章不对, 我发现原因是不能有Response.Redirect("~/");跳转了后,,就退不出登录了 最近遇到一个很诡异的问题,在最近的一个新项目中,发现在 阅读全文
posted @ 2016-07-08 14:49 shiningrise 阅读(997) 评论(1) 推荐(0)
摘要: http://open.soft.360.cn/ 阅读全文
posted @ 2016-07-07 16:09 shiningrise 阅读(185) 评论(0) 推荐(0)
摘要: http://www.jrsoftware.org/isinfo.php 阅读全文
posted @ 2016-07-07 15:30 shiningrise 阅读(180) 评论(0) 推荐(0)
摘要: net stop spooler del c:\windows\system32\spool\printers\*.* /Q /F net start spooler 阅读全文
posted @ 2016-07-06 20:27 shiningrise 阅读(274) 评论(0) 推荐(0)
摘要: 1.创建 API 帮助页 2.将帮助页添加到现有的项目 3.添加Api文档 4.Under the Hood 当你创建一个网络 API 时,它很有用来创建一个帮助页,以便其他开发人员将知道如何调用您的 API。您可以创建的所有文档手动,但它是自动生成尽可能多地更好。 为了简化这一任务,ASP.NET Web API 提供一个库自动生成帮助页在运行时。 回到顶部 1.创建 API 帮助页 安装A... 阅读全文
posted @ 2016-07-06 17:17 shiningrise 阅读(2424) 评论(1) 推荐(1)
摘要: http://vsrefactoringessentials.com/Features/Refactorings-CSharp 阅读全文
posted @ 2016-07-06 07:25 shiningrise 阅读(151) 评论(0) 推荐(0)
摘要: osharp3 原来的数据日志,有配置文件中有这总开关,DataLoggingEnabled,原来的程序是,这个总开关关了,就无法记录数据日志了,,如果开了,,他不管记录不记录数据日志,系统都会存数据改动日志到DataLogCache中 我在 DbContextBase中注入了一个操作记录员类 pu 阅读全文
posted @ 2016-07-05 19:45 shiningrise 阅读(525) 评论(0) 推荐(0)
摘要: osharp3 整合 dbcontextscope 后,,dbcontextscope 对dbcontext管理的很好,做到,用到时创建,不用时销毁,下面看一个 trace 但dbcontext默认是由dbcontextscope创建的,所以,我们的ioc就不能对dbcontext建行注入 不过它留 阅读全文
posted @ 2016-07-05 19:22 shiningrise 阅读(611) 评论(0) 推荐(0)
摘要: [Obsolete("此API即将移除")] 阅读全文
posted @ 2016-07-05 15:32 shiningrise 阅读(210) 评论(0) 推荐(0)
摘要: Why is applicationhost.config still being added to source control even thought it's in gitignore git rm .vs/config/applicationhost.config 阅读全文
posted @ 2016-07-05 13:30 shiningrise 阅读(157) 评论(0) 推荐(0)
摘要: using CanDoo.Contracts; using CanDoo.Core.Data; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CanDoo.Data; using System.Linq... 阅读全文
posted @ 2016-07-02 17:05 shiningrise 阅读(267) 评论(0) 推荐(0)
摘要: https://visualstudiogallery.msdn.microsoft.com/9d6ef0ce-2bef-4a82-9a84-7718caa5bb45 Nest files in Solution Explorer. 建立文件关联 阅读全文
posted @ 2016-07-01 21:32 shiningrise 阅读(285) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/zhengwl/p/5433181.html Aop含义:aspect-oriented programming 实现工具介绍 Autofac是一个比较流行的Ioc组件,DynamicProxy2是 the Castle Project core的一部分,提供了一个拦截框架 组件安装和实现步骤 1.先打开vs新建一个web项目,打开nug... 阅读全文
posted @ 2016-07-01 09:11 shiningrise 阅读(558) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/ShaYeBlog/p/3554253.html 1:安装后,Resharper会用他自己的英文智能提示,替换掉 vs2010的智能提示,所以我们要换回到vs2010的智能提示 2:快捷键。是使用vs2010的快捷键还是使用 Resharper的快捷键呢?我是使用re的快捷键 3: Resharper安装后,会做几件事情,这几件事情对于除此使用者,... 阅读全文
posted @ 2016-07-01 07:19 shiningrise 阅读(561) 评论(0) 推荐(0)
摘要: try { } catch (DbEntityValidationException dbex) { string errMsg = string.Empty; foreach (var eve in dbex.... 阅读全文
posted @ 2016-06-30 18:38 shiningrise 阅读(505) 评论(0) 推荐(0)
摘要: /// <summary> /// 表示业务操作结果的枚举, /// 对于业务务操作单元的影响只有二种状态, /// 成功,无变化: 操作将继续,事务将继续 /// 失败:将导致 操作被中断,事务被回滚 /// </summary> public enum OperationResultType { 阅读全文
posted @ 2016-06-30 01:12 shiningrise 阅读(365) 评论(0) 推荐(0)
摘要: https://msdn.microsoft.com/zh-cn/data/jj591621 Data Access and Storage > 学习 > Entity Framework > 开始操作 > Code First 迁移 本演练将提供对实体框架中 Code First 迁移的概述。您可以完成整个演练,也可以跳至自己感兴趣的主题。主题如下: 启用迁移 生成并运行迁移 自定义迁移 ... 阅读全文
posted @ 2016-06-29 22:50 shiningrise 阅读(688) 评论(0) 推荐(0)
摘要: /// /// 重写以筛选出当前上下文的实体映射信息 /// protected override IEnumerable EntityMappersFilter(IEnumerable entityMappers) { Type contextType = typeof(TDbContex... 阅读全文
posted @ 2016-06-29 22:48 shiningrise 阅读(1027) 评论(1) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 29 下一页
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css