上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 29 下一页
摘要: http://www.cnblogs.com/lyj/archive/2008/03/25/1119671.html 阅读全文
posted @ 2016-06-09 13:10 shiningrise 阅读(169) 评论(0) 推荐(0)
摘要: var q1 = from orderitem in q2 join pd in _iProductDetailContract.Entities on orderitem.ProductDetailId equals pd.Id join pm in ProductMainContract.Entities o... 阅读全文
posted @ 2016-06-09 00:16 shiningrise 阅读(2156) 评论(0) 推荐(0)
摘要: 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 阅读(354) 评论(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 阅读(946) 评论(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 阅读(9252) 评论(1) 推荐(1)
摘要: http://www.linqpad.net/Download.aspx 阅读全文
posted @ 2016-06-08 22:39 shiningrise 阅读(174) 评论(0) 推荐(0)
摘要: http://www.nopcommerce.com/ 阅读全文
posted @ 2016-06-08 21:42 shiningrise 阅读(113) 评论(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 阅读(458) 评论(0) 推荐(0)
摘要: https://code.msdn.microsoft.com/OWIN-OAuth-20-Authorization-ba2b8783#content 阅读全文
posted @ 2016-06-08 15:29 shiningrise 阅读(259) 评论(0) 推荐(0)
摘要: http://git.oschina.net/shiningrise/AutofacOwinDemo webform属性注入 pagebase方式 阅读全文
posted @ 2016-06-08 07:28 shiningrise 阅读(2242) 评论(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 阅读(563) 评论(0) 推荐(0)
摘要: 结果是这两个hashcode相等 阅读全文
posted @ 2016-06-08 05:11 shiningrise 阅读(764) 评论(0) 推荐(0)
摘要: public static IAppBuilder UseAutofacMiddleware(this IAppBuilder app, ILifetimeScope container) { if (app == null) { throw new ArgumentNullExcep... 阅读全文
posted @ 2016-06-08 04:09 shiningrise 阅读(510) 评论(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 阅读(416) 评论(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 阅读(463) 评论(0) 推荐(0)
摘要: Autofac.Integration.Mvc 阅读全文
posted @ 2016-06-08 03:37 shiningrise 阅读(662) 评论(0) 推荐(0)
摘要: http://www.fishlee.net/ 阅读全文
posted @ 2016-06-07 01:57 shiningrise 阅读(187) 评论(0) 推荐(0)
摘要: http://yusi123.com/ 阅读全文
posted @ 2016-06-07 01:47 shiningrise 阅读(496) 评论(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 阅读(367) 评论(0) 推荐(0)
摘要: 学习Linq时,经常会遇到Linq使用Group By问题,这里将介绍Linq使用Group By问题的解决方法。 1.计数 语句描述:Linq使用Group By和Count得到每个CategoryID中产品的数量。 说明:先按CategoryID归类,取出CategoryID值和各个分类产品的数 阅读全文
posted @ 2016-06-06 23:01 shiningrise 阅读(222) 评论(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 阅读(186) 评论(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 阅读(249) 评论(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 阅读(219) 评论(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 阅读(486) 评论(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 阅读(1506) 评论(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 阅读(925) 评论(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 阅读(694) 评论(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 阅读(451) 评论(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 阅读(178) 评论(0) 推荐(0)
摘要: public class HelloWorldOptions { public HelloWorldOptions() { IncludeTimestamp = true; Name = "World"; } public bool IncludeTimestamp ... 阅读全文
posted @ 2016-06-05 17:47 shiningrise 阅读(199) 评论(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 阅读(308) 评论(0) 推荐(0)
摘要: Update-Package -Reinstall Update-Package -reinstall -ProjectName Cardin.HeartCare.Service.ChatService Nuget程序包管理 —》程序包管理控制台,运行以下命令即可:Update-Package Mi 阅读全文
posted @ 2016-06-05 00:38 shiningrise 阅读(408) 评论(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 阅读(2765) 评论(0) 推荐(0)
摘要: 必须安装 Microsoft.Owin.Host.SystemWeb 阅读全文
posted @ 2016-06-04 21:04 shiningrise 阅读(130) 评论(0) 推荐(0)
摘要: http://www.crsky.com/soft/72908.html 阅读全文
posted @ 2016-06-04 18:04 shiningrise 阅读(195) 评论(0) 推荐(0)
摘要: 开始 EF6.1也出来不少日子了,6.1相比6.0有个很大的特点就是新增了System.Data.Entity.Infrastructure.Interception 命名空间,此命名空间下的对象可以允许我们更加方便的了解到EF运行时的一些信息,当然我们最想看的还是EF生成的Sql语句,话不多讲,开 阅读全文
posted @ 2016-06-04 00:03 shiningrise 阅读(1599) 评论(1) 推荐(3)
摘要: var db = this.UnitOfWork as CodeFirstDbContext; using (var tan = db.Database.BeginTransaction()) { try { ... 阅读全文
posted @ 2016-06-03 13:50 shiningrise 阅读(277) 评论(0) 推荐(0)
摘要: vs2013 支持C#6.0 Install-Package Microsoft.Net.Compilers 阅读全文
posted @ 2016-06-03 11:20 shiningrise 阅读(589) 评论(0) 推荐(0)
摘要: 首先我们先创建一个txt文件,添加shutdown -r -f -t 0 ,文件点击另存为,选择所有类型,保存格式为“重启.bat”文件。 说明:shutdown命令用法: /r 关闭并重新启动计算机。 /f 强制正在运行的应用程序关闭,不前台警告用户。 当为 /t 参数指定大于 0 的值时, 则默 阅读全文
posted @ 2016-06-01 09:12 shiningrise 阅读(1032) 评论(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 阅读(282) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 29 下一页
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css