摘要: System.Diagnostics.Trace.Listeners.Clear(); System.Diagnostics.Trace.AutoFlush = true; System.Diagnostics.Trace.Listeners.Add(new System.Diagnostics.T 阅读全文
posted @ 2016-06-08 23:44 shiningrise 阅读(340) 评论(0) 推荐(0) 编辑
摘要: var query =from a in this.ObjectContext.siteInfo join b in this.ObjectContext.shopInfo on a.siteID equals b.siteID group new {a,b} by new { a.Lon, a.Lat, a.siteID, b.date} into g ... 阅读全文
posted @ 2016-06-08 23:36 shiningrise 阅读(943) 评论(0) 推荐(0) 编辑
摘要: 1、左连接: var LeftJoin = from emp in ListOfEmployees join dept in ListOfDepartment on emp.DeptID equals dept.ID into JoinedEmpDept from dept in JoinedEmpDept.DefaultIfEmpty() select new ... 阅读全文
posted @ 2016-06-08 22:44 shiningrise 阅读(9233) 评论(1) 推荐(1) 编辑
摘要: http://www.linqpad.net/Download.aspx 阅读全文
posted @ 2016-06-08 22:39 shiningrise 阅读(164) 评论(0) 推荐(0) 编辑
摘要: http://www.nopcommerce.com/ 阅读全文
posted @ 2016-06-08 21:42 shiningrise 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 本篇介绍Linq的Group和Join操作,继续使用《Linq 学习(3) 语法结构》中介绍的数据源。GroupGroup是进行分组操作,同SQL中的Group By类似。原型如下: public static IEnumerable<IGrouping<TKey, TSource>> GroupB 阅读全文
posted @ 2016-06-08 21:03 shiningrise 阅读(404) 评论(0) 推荐(0) 编辑
摘要: https://code.msdn.microsoft.com/OWIN-OAuth-20-Authorization-ba2b8783#content 阅读全文
posted @ 2016-06-08 15:29 shiningrise 阅读(244) 评论(0) 推荐(0) 编辑
摘要: http://git.oschina.net/shiningrise/AutofacOwinDemo webform属性注入 pagebase方式 阅读全文
posted @ 2016-06-08 07:28 shiningrise 阅读(2212) 评论(2) 推荐(0) 编辑
摘要: using Owin; using Autofac; using Autofac.Integration.Owin; using System.Web; var owin = this.Request.GetOwinContext(); var scop = owin.GetAutofacLifetimeScope(); scop.Resolv... 阅读全文
posted @ 2016-06-08 05:33 shiningrise 阅读(558) 评论(0) 推荐(0) 编辑
摘要: 结果是这两个hashcode相等 阅读全文
posted @ 2016-06-08 05:11 shiningrise 阅读(754) 评论(0) 推荐(0) 编辑
摘要: public static IAppBuilder UseAutofacMiddleware(this IAppBuilder app, ILifetimeScope container) { if (app == null) { throw new ArgumentNullExcep... 阅读全文
posted @ 2016-06-08 04:09 shiningrise 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css