posted @ 2016-06-29 19:49
shiningrise
阅读(161)
推荐(0)
摘要:
http://www.cnblogs.com/libingql/p/4675752.html 1. sessionState的4种mode模式 在ASP.NET中Session的sessionState的4中mode模式:Off、InProc、StateServer及SqlServer。 2. Off模式 关闭模式,即不需要使用Session。 单个页面关闭Session: 3. InPr...
阅读全文
posted @ 2016-06-29 19:41
shiningrise
阅读(5643)
推荐(0)
摘要:
http://www.cnblogs.com/libingql/p/3330880.html 1、EF Code First创建数据库 新建控制台应用程序Portal,通过程序包管理器控制台添加EntityFramework。 在程序包管理器控制台中执行以下语句,安装EntityFramework。PM> Install-Package EntityFramework 安装成功后,界面...
阅读全文
posted @ 2016-06-29 19:37
shiningrise
阅读(256)
推荐(0)
摘要:
https://api.alidayu.com/doc2/apiDetail?spm=0.0.0.0.SEe3dm&apiId=25450
阅读全文
posted @ 2016-06-29 14:27
shiningrise
阅读(165)
推荐(0)
摘要:
http://blog.csdn.net/joyhen/article/details/8477985
阅读全文
posted @ 2016-06-28 23:47
shiningrise
阅读(204)
推荐(0)
摘要:
osharp3的事务处理是跳过savechangeing方法来控制的,没有DbContextScope专业 DbContextScope管理dbcontext的优劣本文不讨论 整合过程: 1、在.Data.Entity/Extensions/ServiceCollectionExtensions.c
阅读全文
posted @ 2016-06-27 15:15
shiningrise
阅读(1227)
推荐(1)
摘要:
http://www.cnblogs.com/webfpc/archive/2010/03/10/1667101.html 首先了解一下不同应用程序域中的对象的通信方式有两种: 一种是跨应用程序域边界传输对象副本 一种是使用代理交换消息。 简单来讲,继承此类的对象可以跨越应用程序域边界被引用,甚至被
阅读全文
posted @ 2016-06-26 11:55
shiningrise
阅读(234)
推荐(0)
摘要:
无法覆盖隔离级别更高的事务中的挂起的更改。 无法覆盖隔离级别更高的事务中的挂起的更改。 在正在读取数据时保持共享锁,以避免脏读,但是在事务结束之前可以更改数据,从而导致不可重复的读取或幻像数据。 在正在读取数据时保持共享锁,以避免脏读,但是在事务结束之前可以更改数据,从而导致不可重复的读取或幻像数据
阅读全文
posted @ 2016-06-26 11:04
shiningrise
阅读(334)
推荐(0)
摘要:
https://efbulkinsert.codeplex.com/ https://github.com/loresoft/EntityFramework.Extended
阅读全文
posted @ 2016-06-25 20:05
shiningrise
阅读(511)
推荐(1)
摘要:
string t = DateTime.Now.Ticks.ToString(); t = DESKey.DESEncrypt(t, DESKey.DesKeyStr); string[] strid = new string[t.Length];// for (int i = 0; i < t.L
阅读全文
posted @ 2016-06-25 15:49
shiningrise
阅读(1487)
推荐(0)
摘要:
https://www.nuget.org/packages/ConfuserEx.Build/
阅读全文
posted @ 2016-06-25 15:40
shiningrise
阅读(529)
推荐(0)
摘要:
::打开开发人员命令提示符输入一下内容与证书密码sn -i CanChou.snk.pfx VS_KEY_4B89A33EE2B53C07
阅读全文
posted @ 2016-06-25 13:35
shiningrise
阅读(340)
推荐(0)
摘要:
http://www.crsky.com/
阅读全文
posted @ 2016-06-25 13:22
shiningrise
阅读(131)
推荐(0)
摘要:
ILMerge http://www.microsoft.com/en-hk/download/details.aspx?id=17630 ILMerge 下载地址:http://www.microsoft.com/downloads/details.aspx?familyid=22914587-b
阅读全文
posted @ 2016-06-25 13:06
shiningrise
阅读(663)
推荐(0)
摘要:
1、DataGridView数据绑定对比(DataTable与泛型List): 当DataGridView的DataSource是DataTable的时候,DataTable的数据改变时,DataGridView的数据会随之改变,无需重新绑定到DataGridView。 当DataGridView的
阅读全文
posted @ 2016-06-25 10:38
shiningrise
阅读(422)
推荐(0)
摘要:
http://www.cnblogs.com/farb/p/4934476.html#pz
阅读全文
posted @ 2016-06-25 09:20
shiningrise
阅读(677)
推荐(0)
摘要:
https://github.com/AutoMapper/AutoMapper.EF6
阅读全文
posted @ 2016-06-25 09:16
shiningrise
阅读(836)
推荐(0)
摘要:
https://github.com/AutoMapper/AutoMapper/wiki/Queryable-Extensions
阅读全文
posted @ 2016-06-25 08:46
shiningrise
阅读(709)
推荐(0)
摘要:
http://www.cnblogs.com/lori/p/3327898.html
阅读全文
posted @ 2016-06-25 08:39
shiningrise
阅读(373)
推荐(0)
摘要:
http://m.blog.csdn.net/article/details?id=7026402 当我们扑捉程序错误时,调试器是开发者们最得力的助手。然而,ASP.NET的跟踪,在调试时是一个很棒的不容忽视的辅助,它允许你的ASP.NET代码在执行期间输出消息,提供有用信息有效帮助你发现问题所在。
阅读全文
posted @ 2016-06-25 08:07
shiningrise
阅读(347)
推荐(0)
摘要:
The Repository Pattern with EF Code First & Dependency Injection in ASP.NET MVC3 Ray_Liang, 4 Jul 2011 GPL3 4.67 (58 votes) Rate this: vote 1vote 2vote 3vote 4vote 5 In this article, I ...
阅读全文
posted @ 2016-06-25 00:43
shiningrise
阅读(653)
推荐(0)
摘要:
Microsoft.AspNet.Identity简介 Microsoft.AspNet.Identity是微软在MVC 5.0中新引入的一种membership框架,和之前ASP.NET传统的membership以及WebPage所带来的SimpleMembership(在MVC 4中使用)都有所
阅读全文
posted @ 2016-06-25 00:33
shiningrise
阅读(329)
推荐(0)
摘要:
How to use context.Set and context.Entry, which ships with EF4.1 ?
阅读全文
posted @ 2016-06-25 00:28
shiningrise
阅读(405)
推荐(0)
摘要:
DbExtensions.Include<T> Method (IQueryable<T>, String) https://msdn.microsoft.com/en-us/library/system.data.entity.dbextensions.include Namespace: Sys
阅读全文
posted @ 2016-06-24 23:15
shiningrise
阅读(1440)
推荐(0)
摘要:
http://www.cnblogs.com/oppoic/p/ef_code_first_dbcontext.html#title02
阅读全文
posted @ 2016-06-24 21:57
shiningrise
阅读(182)
推荐(0)
摘要:
protected override void OnModelCreating(DbModelBuilder modelBuilder) { var model = modelBuilder.Build(Database.Connection); var compliedModel = model.
阅读全文
posted @ 2016-06-24 15:45
shiningrise
阅读(430)
推荐(0)
摘要:
https://efcache.codeplex.com/
阅读全文
posted @ 2016-06-24 06:47
shiningrise
阅读(277)
推荐(0)
摘要:
SELECT SUM(CASE WHEN STATE=1 THEN 1 ELSE 0 END) ,SUM(CASE WHEN STATE=2 THEN 1 ELSE 0 END) ,SUM(CASE WHEN STATE=3 THEN 1 ELSE 0 END) ,SUM(CASE WHEN STATE=4 THEN 1 ELSE 0 END) FROM TB
阅读全文
posted @ 2016-06-24 05:48
shiningrise
阅读(367)
推荐(0)
摘要:
<system.web> <trace enabled="true" localOnly="true" pageOutput="true" />
阅读全文
posted @ 2016-06-22 11:14
shiningrise
阅读(195)
推荐(0)
摘要:
WPF 提示"该密钥文件可能受密码保护。若要更正此问题,请尝试再次导入证书,或手动将证书安装到具有以下密钥容器名称的强名称"的解决方法 1.打开Visual Studio 命令提示(2010): 开始->Microsoft Visual Studio 2010->Visual Studio Tool
阅读全文
posted @ 2016-06-22 10:22
shiningrise
阅读(216)
推荐(0)
摘要:
https://github.com/kaedei/gitignore/blob/master/VisualStudio.gitignore
阅读全文
posted @ 2016-06-22 09:50
shiningrise
阅读(1325)
推荐(0)
摘要:
当我们扑捉程序错误时,调试器是开发者们最得力的助手。然而,ASP.NET的跟踪,在调试时是一个很棒的不容忽视的辅助,它允许你的ASP.NET代码在执行期间输出消息,提供有用信息有效帮助你发现问题所在。 调试器和跟踪这两个技术有一点区别。调试器是一种自然的交互技术它依赖于你有能力暂停程序执行并检查当前
阅读全文
posted @ 2016-06-22 07:51
shiningrise
阅读(1223)
推荐(0)
摘要:
一、DbContext介绍 DbContext是Entity Framework(EF)操作数据库的上下文网关(接口)。我们对数据库的所有操作都是通过DbContext完成的。下面我们将讨论在code first模式下如何创建自己的DbContext并配置优化。 二、创建DbContext 代码如下
阅读全文
posted @ 2016-06-22 00:14
shiningrise
阅读(2640)
推荐(0)
摘要:
http://www.sufeinet.com http://tool.sufeinet.com/
阅读全文
posted @ 2016-06-21 14:32
shiningrise
阅读(209)
推荐(0)
摘要:
http://www.tuicool.com/articles/QvYbEn 一.EF,CodeFirst加密SQL连接符 LifeHelpContext继承的是 DbContext ,public LifeHelpContext() : base("SQLConnectionString"),可以
阅读全文
posted @ 2016-06-21 13:14
shiningrise
阅读(1270)
推荐(0)
摘要:
http://blog.sina.com.cn/s/blog_9dcdd2020101nf4v.html
阅读全文
posted @ 2016-06-21 10:54
shiningrise
阅读(4705)
推荐(0)
摘要:
http://www.cnblogs.com/henryzhu/archive/2013/01/27/csharp-5-new-callerinformation.html 去年8月,Visual Studio 2012和.NET Framework 4.5已经完成了,在.NET Framework
阅读全文
posted @ 2016-06-20 23:18
shiningrise
阅读(367)
推荐(0)
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PostSharp.Laos; using PostSharp; namespace PostSharpApp { [MyTrace(AttributeTargetMembers="Test*")] ...
阅读全文
posted @ 2016-06-20 20:12
shiningrise
阅读(159)
推荐(0)
摘要:
使用PostSharp 在.NET 平台上实现 AOP 摘要 本文首先介绍AOP(面向方面编程)的相关概念及理论,然后介绍如何使用PostSharp框架在.NET平台上实现AOP,最后对PostSharp的机制及AOP的优劣进行一个简单的分析。 AOP(Aspect-Oriented Program
阅读全文
posted @ 2016-06-20 19:33
shiningrise
阅读(402)
推荐(0)
摘要:
C#中事件的使用 http://www.cnblogs.com/wayfarer/archive/2004/04/20/6712.html 用一个例子来说明事件的使用。 创建一个简单的类,名为FileWatch,包含事件OnfileChange。该类将检查在执行应用程序的目录(当前 目录,通常是项目
阅读全文
posted @ 2016-06-20 19:21
shiningrise
阅读(2233)
推荐(0)