上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 29 下一页
摘要: 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 阅读(628) 评论(0) 推荐(0) 编辑
摘要: 1、DataGridView数据绑定对比(DataTable与泛型List): 当DataGridView的DataSource是DataTable的时候,DataTable的数据改变时,DataGridView的数据会随之改变,无需重新绑定到DataGridView。 当DataGridView的 阅读全文
posted @ 2016-06-25 10:38 shiningrise 阅读(407) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/farb/p/4934476.html#pz 阅读全文
posted @ 2016-06-25 09:20 shiningrise 阅读(668) 评论(0) 推荐(0) 编辑
摘要: https://github.com/AutoMapper/AutoMapper.EF6 阅读全文
posted @ 2016-06-25 09:16 shiningrise 阅读(827) 评论(0) 推荐(0) 编辑
摘要: https://github.com/AutoMapper/AutoMapper/wiki/Queryable-Extensions 阅读全文
posted @ 2016-06-25 08:46 shiningrise 阅读(698) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/lori/p/3327898.html 阅读全文
posted @ 2016-06-25 08:39 shiningrise 阅读(366) 评论(0) 推荐(0) 编辑
摘要: http://m.blog.csdn.net/article/details?id=7026402 当我们扑捉程序错误时,调试器是开发者们最得力的助手。然而,ASP.NET的跟踪,在调试时是一个很棒的不容忽视的辅助,它允许你的ASP.NET代码在执行期间输出消息,提供有用信息有效帮助你发现问题所在。 阅读全文
posted @ 2016-06-25 08:07 shiningrise 阅读(301) 评论(0) 推荐(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 阅读(648) 评论(0) 推荐(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 阅读(312) 评论(0) 推荐(0) 编辑
摘要: How to use context.Set and context.Entry, which ships with EF4.1 ? 阅读全文
posted @ 2016-06-25 00:28 shiningrise 阅读(402) 评论(0) 推荐(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 阅读(1427) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/oppoic/p/ef_code_first_dbcontext.html#title02 阅读全文
posted @ 2016-06-24 21:57 shiningrise 阅读(174) 评论(0) 推荐(0) 编辑
摘要: protected override void OnModelCreating(DbModelBuilder modelBuilder) { var model = modelBuilder.Build(Database.Connection); var compliedModel = model. 阅读全文
posted @ 2016-06-24 15:45 shiningrise 阅读(424) 评论(0) 推荐(0) 编辑
摘要: https://efcache.codeplex.com/ 阅读全文
posted @ 2016-06-24 06:47 shiningrise 阅读(266) 评论(0) 推荐(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 阅读(359) 评论(0) 推荐(0) 编辑
摘要: <system.web> <trace enabled="true" localOnly="true" pageOutput="true" /> 阅读全文
posted @ 2016-06-22 11:14 shiningrise 阅读(188) 评论(0) 推荐(0) 编辑
摘要: WPF 提示"该密钥文件可能受密码保护。若要更正此问题,请尝试再次导入证书,或手动将证书安装到具有以下密钥容器名称的强名称"的解决方法 1.打开Visual Studio 命令提示(2010): 开始->Microsoft Visual Studio 2010->Visual Studio Tool 阅读全文
posted @ 2016-06-22 10:22 shiningrise 阅读(210) 评论(0) 推荐(0) 编辑
摘要: https://github.com/kaedei/gitignore/blob/master/VisualStudio.gitignore 阅读全文
posted @ 2016-06-22 09:50 shiningrise 阅读(1317) 评论(0) 推荐(0) 编辑
摘要: 当我们扑捉程序错误时,调试器是开发者们最得力的助手。然而,ASP.NET的跟踪,在调试时是一个很棒的不容忽视的辅助,它允许你的ASP.NET代码在执行期间输出消息,提供有用信息有效帮助你发现问题所在。 调试器和跟踪这两个技术有一点区别。调试器是一种自然的交互技术它依赖于你有能力暂停程序执行并检查当前 阅读全文
posted @ 2016-06-22 07:51 shiningrise 阅读(1183) 评论(0) 推荐(0) 编辑
摘要: 一、DbContext介绍 DbContext是Entity Framework(EF)操作数据库的上下文网关(接口)。我们对数据库的所有操作都是通过DbContext完成的。下面我们将讨论在code first模式下如何创建自己的DbContext并配置优化。 二、创建DbContext 代码如下 阅读全文
posted @ 2016-06-22 00:14 shiningrise 阅读(2620) 评论(0) 推荐(0) 编辑
摘要: http://www.sufeinet.com http://tool.sufeinet.com/ 阅读全文
posted @ 2016-06-21 14:32 shiningrise 阅读(197) 评论(0) 推荐(0) 编辑
摘要: http://www.tuicool.com/articles/QvYbEn 一.EF,CodeFirst加密SQL连接符 LifeHelpContext继承的是 DbContext ,public LifeHelpContext() : base("SQLConnectionString"),可以 阅读全文
posted @ 2016-06-21 13:14 shiningrise 阅读(1256) 评论(0) 推荐(0) 编辑
摘要: http://blog.sina.com.cn/s/blog_9dcdd2020101nf4v.html 阅读全文
posted @ 2016-06-21 10:54 shiningrise 阅读(4673) 评论(0) 推荐(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 阅读(359) 评论(0) 推荐(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 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 使用PostSharp 在.NET 平台上实现 AOP 摘要 本文首先介绍AOP(面向方面编程)的相关概念及理论,然后介绍如何使用PostSharp框架在.NET平台上实现AOP,最后对PostSharp的机制及AOP的优劣进行一个简单的分析。 AOP(Aspect-Oriented Program 阅读全文
posted @ 2016-06-20 19:33 shiningrise 阅读(362) 评论(0) 推荐(0) 编辑
摘要: C#中事件的使用 http://www.cnblogs.com/wayfarer/archive/2004/04/20/6712.html 用一个例子来说明事件的使用。 创建一个简单的类,名为FileWatch,包含事件OnfileChange。该类将检查在执行应用程序的目录(当前 目录,通常是项目 阅读全文
posted @ 2016-06-20 19:21 shiningrise 阅读(2223) 评论(0) 推荐(0) 编辑
摘要: http://www.codeproject.com/Articles/1080517/Aspect-Oriented-Programming-using-Interceptors-wit Download sample application (or see the latest on Githu 阅读全文
posted @ 2016-06-20 18:42 shiningrise 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 通过反射将变量值转为变量名本身 这是.NET反射的一个有趣小例子: 通过反射将变量值转为变量名本身. 当然要先添加命名空间:using System.Reflection; 示例代码如下: class Program { string name = "strA"; string strA = "st 阅读全文
posted @ 2016-06-20 16:51 shiningrise 阅读(507) 评论(0) 推荐(0) 编辑
摘要: .NET 中获取调用方法名 在写记录日志功能时,需要记录日志调用方所在的模块名、命名空间名、类名以及方法名,想到使用的是反射(涉及到反射请注意性能),但具体是哪一块儿还不了解,于是搜索,整理如下: 需要添加相应的命名空间: using System; using System.Diagnostics 阅读全文
posted @ 2016-06-20 16:10 shiningrise 阅读(517) 评论(0) 推荐(0) 编辑
摘要: https://github.com/aspnetboilerplate https://github.com/tangxuehua/enode daxnet的Apworks框架 http://www.cnblogs.com/mienreal/p/4340864.html https://githu 阅读全文
posted @ 2016-06-20 14:17 shiningrise 阅读(216) 评论(0) 推荐(0) 编辑
摘要: http://cachemanager.net/Documentation/Index/cachemanager_architecture https://www.nuget.org/packages/CacheManager.Web/ https://github.com/MichaCo/Cach 阅读全文
posted @ 2016-06-19 21:56 shiningrise 阅读(314) 评论(0) 推荐(0) 编辑
摘要: treeList.Sort((x, y) => x.SortIndex < y.SortIndex ? -1 : 0); 阅读全文
posted @ 2016-06-19 13:01 shiningrise 阅读(259) 评论(0) 推荐(0) 编辑
摘要: You already created a database after running your Code-First application the first time, but what about the second time onwards?? Will it create a new 阅读全文
posted @ 2016-06-19 10:13 shiningrise 阅读(159) 评论(0) 推荐(0) 编辑
摘要: git rebase -i HEAD~[number_of_commits] git rebase -i HEAD~2 阅读全文
posted @ 2016-06-18 17:58 shiningrise 阅读(158) 评论(0) 推荐(0) 编辑
摘要: var databaseInitializer = new DatabaseInitializer(); databaseInitializer.MapperAssemblyFinder = new EntityMapperAssemblyFinder() { AllAssemblyFinder = new CanDoo.Core.Reflecti... 阅读全文
posted @ 2016-06-18 09:02 shiningrise 阅读(271) 评论(0) 推荐(0) 编辑
摘要: Move the ApplicationUser definition to your DAL. Inherit your MyDbContext from IdentityDbContext<ApplicationUser> or IdentityDbContext OnModelCreating 阅读全文
posted @ 2016-06-18 03:20 shiningrise 阅读(1034) 评论(0) 推荐(0) 编辑
摘要: public class CanDooDbContext : DbContextBase { protected override void OnModelCreating(DbModelBuilder modelBuilder) { if (modelBuilder == null) { ... 阅读全文
posted @ 2016-06-17 17:08 shiningrise 阅读(433) 评论(0) 推荐(0) 编辑
摘要: VS2015 推荐插件///////////////////////////////////////////////////////////////////////////////////////////代码辅助及显示增强SuperCharger是原来的CodeMap在VS2013/VS2015上的 阅读全文
posted @ 2016-06-17 11:15 shiningrise 阅读(27708) 评论(0) 推荐(3) 编辑
摘要: CREATE TABLE dbo.ELMAH_Error ( ErrorId UNIQUEIDENTIFIER NOT NULL, Application NVARCHAR(60) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, Host NVARCHAR(50) COLLATE SQL_Latin1_G... 阅读全文
posted @ 2016-06-17 10:53 shiningrise 阅读(280) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 29 下一页
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css