上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 29 下一页
摘要: using System; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Security; using System.Web; using Autofac; using Autofac.Integration.Owin; namespace Owin { /// ... 阅读全文
posted @ 2016-06-08 04:07 shiningrise 阅读(408) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Web; using Autofac.Core.Lifetime; namespace Autofac.Integration.Web { /// /// Provides application-wide and per-request containers. /// public class Cont... 阅读全文
posted @ 2016-06-08 03:47 shiningrise 阅读(458) 评论(0) 推荐(0) 编辑
摘要: Autofac.Integration.Mvc 阅读全文
posted @ 2016-06-08 03:37 shiningrise 阅读(653) 评论(0) 推荐(0) 编辑
摘要: http://www.fishlee.net/ 阅读全文
posted @ 2016-06-07 01:57 shiningrise 阅读(181) 评论(0) 推荐(0) 编辑
摘要: http://yusi123.com/ 阅读全文
posted @ 2016-06-07 01:47 shiningrise 阅读(281) 评论(0) 推荐(0) 编辑
摘要: http://www.helixoft.com/vsdocman/overview.html https://blog.fishlee.net/2016/01/14/helixoft-vsdocman-7-3/ 阅读全文
posted @ 2016-06-07 01:40 shiningrise 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 学习Linq时,经常会遇到Linq使用Group By问题,这里将介绍Linq使用Group By问题的解决方法。 1.计数 语句描述:Linq使用Group By和Count得到每个CategoryID中产品的数量。 说明:先按CategoryID归类,取出CategoryID值和各个分类产品的数 阅读全文
posted @ 2016-06-06 23:01 shiningrise 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Linq使用Group By 1 1.简单形式: var q = from p in db.Products group p by p.CategoryID into g select g; 语句描述:Linq使用Group By按CategoryID划分产品。 说明:from p in db.Pr 阅读全文
posted @ 2016-06-06 22:59 shiningrise 阅读(178) 评论(0) 推荐(0) 编辑
摘要: internal static bool VerifyColumns(SqlConnection conn, string table, params string[] columns) { List<string> list = new List<string>(); using (SqlComm 阅读全文
posted @ 2016-06-06 19:23 shiningrise 阅读(241) 评论(0) 推荐(1) 编辑
摘要: https://github.com/rustd/AspnetIdentitySample http://www.asp.net/web-forms/overview/getting-started/getting-started-with-aspnet-45-web-forms/membershi 阅读全文
posted @ 2016-06-06 17:10 shiningrise 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Although it's in the Microsoft.Owin.Host.SystemWeb assembly it is an extension method in the System.Web namespace, so you need to have the reference to the former, and be using the latter. 阅读全文
posted @ 2016-06-06 16:44 shiningrise 阅读(473) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/easygame/p/4447457.html 在Code First模式下使用SQLite一直存在不能自动生成数据库的问题,使用SQL Server Compact再转换到SQLite的方式(SQL Server Compact/SQLite Tool 阅读全文
posted @ 2016-06-06 14:16 shiningrise 阅读(1487) 评论(0) 推荐(0) 编辑
摘要: public class CustomerMap : EntityTypeConfiguration { public CustomerMap() { this.Property(o => o.UserName).HasColumnAnnotation("Index", new IndexAnnotation(new IndexAt... 阅读全文
posted @ 2016-06-06 14:14 shiningrise 阅读(918) 评论(0) 推荐(0) 编辑
摘要: Introduction Websites often need to generate SEO friendly URLs. In ASP.NET Web Forms applications, a URL is tied to a physical .aspx file. This defaul 阅读全文
posted @ 2016-06-06 12:37 shiningrise 阅读(648) 评论(0) 推荐(0) 编辑
摘要: Currently, in the both the Web API and MVC frameworks, dependency injection support does not come into play until after the OWIN pipeline has started 阅读全文
posted @ 2016-06-05 21:02 shiningrise 阅读(442) 评论(0) 推荐(0) 编辑
摘要: app.Properties["Hello"] = System.DateTime.Now; app.Run(async context => await context.Response.WriteAsync(app.Properties["Hello"].ToString() + ",now=" + System.DateTime.Now.T... 阅读全文
posted @ 2016-06-05 18:29 shiningrise 阅读(174) 评论(0) 推荐(0) 编辑
摘要: public class HelloWorldOptions { public HelloWorldOptions() { IncludeTimestamp = true; Name = "World"; } public bool IncludeTimestamp ... 阅读全文
posted @ 2016-06-05 17:47 shiningrise 阅读(191) 评论(0) 推荐(0) 编辑
摘要: namespace Webform.App { public class PageBase : System.Web.UI.Page { } public interface IService : IRepository, IScopeDependency where TEntity : IEntity { } publ... 阅读全文
posted @ 2016-06-05 00:41 shiningrise 阅读(301) 评论(0) 推荐(0) 编辑
摘要: Update-Package -Reinstall Update-Package -reinstall -ProjectName Cardin.HeartCare.Service.ChatService Nuget程序包管理 —》程序包管理控制台,运行以下命令即可:Update-Package Mi 阅读全文
posted @ 2016-06-05 00:38 shiningrise 阅读(399) 评论(0) 推荐(0) 编辑
摘要: Linq 中按照多个值进行分组(GroupBy) .GroupBy(x => new { x.Age, x.Sex }) group emp by new { emp.Age, emp.Sex } into g // 实现多key分组的扩展函数版本 var sums = empList .GroupBy(x => new { x.Age, x.Sex }) ... 阅读全文
posted @ 2016-06-04 22:22 shiningrise 阅读(2758) 评论(0) 推荐(0) 编辑
摘要: 必须安装 Microsoft.Owin.Host.SystemWeb 阅读全文
posted @ 2016-06-04 21:04 shiningrise 阅读(125) 评论(0) 推荐(0) 编辑
摘要: http://www.crsky.com/soft/72908.html 阅读全文
posted @ 2016-06-04 18:04 shiningrise 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 开始 EF6.1也出来不少日子了,6.1相比6.0有个很大的特点就是新增了System.Data.Entity.Infrastructure.Interception 命名空间,此命名空间下的对象可以允许我们更加方便的了解到EF运行时的一些信息,当然我们最想看的还是EF生成的Sql语句,话不多讲,开 阅读全文
posted @ 2016-06-04 00:03 shiningrise 阅读(1580) 评论(1) 推荐(3) 编辑
摘要: var db = this.UnitOfWork as CodeFirstDbContext; using (var tan = db.Database.BeginTransaction()) { try { ... 阅读全文
posted @ 2016-06-03 13:50 shiningrise 阅读(272) 评论(0) 推荐(0) 编辑
摘要: vs2013 支持C#6.0 Install-Package Microsoft.Net.Compilers 阅读全文
posted @ 2016-06-03 11:20 shiningrise 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 首先我们先创建一个txt文件,添加shutdown -r -f -t 0 ,文件点击另存为,选择所有类型,保存格式为“重启.bat”文件。 说明:shutdown命令用法: /r 关闭并重新启动计算机。 /f 强制正在运行的应用程序关闭,不前台警告用户。 当为 /t 参数指定大于 0 的值时, 则默 阅读全文
posted @ 2016-06-01 09:12 shiningrise 阅读(981) 评论(0) 推荐(0) 编辑
摘要: SQLserver中用convert函数转换日期格式 2008-01-23 15:47 SQLserver中用convert函数转换日期格式2008-01-15 15:51SQLserver中用convert函数转换日期格式 SQL Server中文版的默认的日期字段datetime格式是yyyy- 阅读全文
posted @ 2016-05-31 09:13 shiningrise 阅读(254) 评论(0) 推荐(0) 编辑
摘要: DATEPART 返回代表指定日期的指定日期部分的整数。 DATEPART ( datepart ,date ) datepart 是指定应返回的日期部分的参数。下表列出了 Microsoft® SQL Server™ 识别的日期部分和缩写。 日期部分缩写 year yy, yyyy quarter 阅读全文
posted @ 2016-05-31 09:09 shiningrise 阅读(1122) 评论(0) 推荐(0) 编辑
摘要: 如果url是 /home/index?id=3 直接Request就ok。 但是如果路由设定为:{controller}/{action}/{id} url是 /home/index/3 这时想在页面View中获取参数id的值,该怎么获取? 查了下资料好多人都利用Action获取到参数值后,用Vie 阅读全文
posted @ 2016-05-31 07:50 shiningrise 阅读(461) 评论(0) 推荐(0) 编辑
摘要: [备忘]ASP.NET MVC中RouteData.GetRequiredString("key")方法和RouteData.DataTokens["key"]方法使用上的区别 DataTokens中的Key是从Routing中获取的,可以是映射关系(可以不是字符串),这个key可以存在也可以不存在 阅读全文
posted @ 2016-05-31 06:24 shiningrise 阅读(408) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/apsnet/archive/2012/04/28/2474730.html 1. Elmah使用后,在发布时,要区分IIS6和IIS7 ,IIS6下 HttpModules必须在web.config或App.config 配置文件中使用 system. 阅读全文
posted @ 2016-05-29 14:35 shiningrise 阅读(313) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/jys509/p/4571298.html 简介 ELMAH(Error Logging Modules and Handlers)错误日志记录模块和处理程序,是一种应用广泛的错误日志工具是完全可插拔。它可以动态添加到一个正在运行的ASP.NET Web 阅读全文
posted @ 2016-05-29 14:13 shiningrise 阅读(254) 评论(0) 推荐(0) 编辑
摘要: redis.windows-service.conf中加 requirepass 你的密码 <!-- Cache.Redis连接配置 --> <add key="Cache_Redis_Configuration" value="localhost,password=你的密码"/> 阅读全文
posted @ 2016-05-29 11:07 shiningrise 阅读(539) 评论(0) 推荐(0) 编辑
摘要: PetaPoco初体验(转) PetaPoco初体验(转) 大部分转自: http://landyer.com/archives/138 PetaPoco C#微型ORM框架,基本无需配置,仅由单个cs文件构成,支持.net3.5 .net4.0。 截稿时PetaPoco的官方最新版本为5.0.1。 阅读全文
posted @ 2016-05-28 11:54 shiningrise 阅读(408) 评论(0) 推荐(0) 编辑
摘要: $('.feedback').removeClass('hidden').delay(1000).queue(function () { $('.feedback').addClass('hidden') }); 阅读全文
posted @ 2016-05-28 11:37 shiningrise 阅读(167) 评论(0) 推荐(0) 编辑
摘要: http://fluentdata.codeplex.com/documentation#Query 阅读全文
posted @ 2016-05-28 11:25 shiningrise 阅读(188) 评论(0) 推荐(0) 编辑
摘要: public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "ad", ... 阅读全文
posted @ 2016-05-26 11:04 shiningrise 阅读(181) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/xinhaijulan/archive/2010/08/21/1805116.html Session共享的解决方案 1、客户端SessionID值唯一; 对于不同的域名:主域名、子域名、跨站点域名或跨服务器域名,用户在打开页面时会产生不同的Sessio 阅读全文
posted @ 2016-05-25 01:19 shiningrise 阅读(1831) 评论(0) 推荐(0) 编辑
摘要: https://natapp.cn/ http://blog.csdn.net/g2321514568/article/details/12406755 目标服务器:targetServer 配置反向代理的服务器:reveseProxServer 1、确定最终访问的网址:比如www.baidu.co 阅读全文
posted @ 2016-05-23 16:41 shiningrise 阅读(724) 评论(0) 推荐(0) 编辑
摘要: 在 Web.config 文件的<configuration>标记的子标记<authorization>和</authorization>之间用于设置应用程序的授权策略,容许或拒绝不同的用户或角色访问,该配置可以在计算机、站点、应用程序、子目录或页等级别上声明,必须与<authentication> 阅读全文
posted @ 2016-05-23 15:29 shiningrise 阅读(875) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 29 下一页
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css