2014年11月13日
摘要:
可以给表值函数传column,而join不可以
阅读全文
posted @ 2014-11-13 16:28
wolf12
阅读(124)
推荐(0)
2014年11月3日
摘要:
class SourceManager { private SourceManager() { } private static SourceManager sourceManager; public static SourceManager Instance { get { if (sourceM
阅读全文
posted @ 2014-11-03 23:15
wolf12
阅读(873)
推荐(0)
2014年8月28日
摘要:
首字母变成大写 System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase("abcd");
阅读全文
posted @ 2014-08-28 17:07
wolf12
阅读(143)
推荐(0)
2014年8月16日
摘要:
实现IRequiresSessionState就OK
阅读全文
posted @ 2014-08-16 14:44
wolf12
阅读(107)
推荐(0)
2014年6月25日
摘要:
set ANSI_NULLS ONset QUOTED_IDENTIFIER ONgo-- Author: wolf-- Create date: 2014-06-25-- Description: 将表数据生成Insert脚本-- Demo : exec pCreateInsertScript '
阅读全文
posted @ 2014-06-25 11:42
wolf12
阅读(231)
推荐(0)
2014年6月6日
摘要:
var result = from u in db.Order join n in db.Equipment on u.OrderId equals n.OrderId into temp from m in temp.DefaultIfEmpty() select new { OrderID =
阅读全文
posted @ 2014-06-06 17:00
wolf12
阅读(167)
推荐(0)
摘要:
在程序包管理器控制台 1.执行:Enable-Migrations -Force 生成:Migrations 2 修改AutomaticMigrationsEnabled默认为false改为true 3.执行:Update-Database -Verbose -Script 生成迁移sql语句,如
阅读全文
posted @ 2014-06-06 16:38
wolf12
阅读(553)
推荐(0)
2014年5月6日
摘要:
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u
阅读全文
posted @ 2014-05-06 15:50
wolf12
阅读(224)
推荐(0)
2014年4月24日
摘要:
在项目中发现有这样的写法 SELECT ZoneID,CountSQAZFZSBJZ3G+CountSQGZJRJZSL3G AS column1FROM G3MulticarrierSiteCoverTableFrm union SELECT 合计 as ZoneID,sum(CountSQAZF
阅读全文
posted @ 2014-04-24 10:26
wolf12
阅读(442)
推荐(0)
2014年4月23日
摘要:
SELECT * FROM dbo.Table_1 WITH(NOLOCK) 这样就可以不用等待,但数据读的是被锁之前的数据,表被锁了,肯定会有对表的update,delete操作。 如果对数据的准确性,实时性要求不是很高的话,可以使用这个方法。 使用场景:如果你的系统太多不明的混乱sql的话,又不
阅读全文
posted @ 2014-04-23 15:59
wolf12
阅读(3273)
推荐(0)