上一页 1 ··· 8 9 10 11 12 13 下一页
  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 阅读(865) 评论(0) 推荐(0) 编辑
  2014年8月28日
摘要: 首字母变成大写 System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase("abcd"); 阅读全文
posted @ 2014-08-28 17:07 wolf12 阅读(135) 评论(0) 推荐(0) 编辑
  2014年8月16日
摘要: 实现IRequiresSessionState就OK 阅读全文
posted @ 2014-08-16 14:44 wolf12 阅读(102) 评论(0) 推荐(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 阅读(222) 评论(0) 推荐(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 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 在程序包管理器控制台 1.执行:Enable-Migrations -Force 生成:Migrations 2 修改AutomaticMigrationsEnabled默认为false改为true 3.执行:Update-Database -Verbose -Script 生成迁移sql语句,如 阅读全文
posted @ 2014-06-06 16:38 wolf12 阅读(541) 评论(0) 推荐(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 阅读(219) 评论(0) 推荐(0) 编辑
  2014年4月24日
摘要: 在项目中发现有这样的写法 SELECT ZoneID,CountSQAZFZSBJZ3G+CountSQGZJRJZSL3G AS column1FROM G3MulticarrierSiteCoverTableFrm union SELECT 合计 as ZoneID,sum(CountSQAZF 阅读全文
posted @ 2014-04-24 10:26 wolf12 阅读(419) 评论(0) 推荐(0) 编辑
  2014年4月23日
摘要: SELECT * FROM dbo.Table_1 WITH(NOLOCK) 这样就可以不用等待,但数据读的是被锁之前的数据,表被锁了,肯定会有对表的update,delete操作。 如果对数据的准确性,实时性要求不是很高的话,可以使用这个方法。 使用场景:如果你的系统太多不明的混乱sql的话,又不 阅读全文
posted @ 2014-04-23 15:59 wolf12 阅读(3228) 评论(0) 推荐(0) 编辑
  2014年4月4日
摘要: /// <summary> /// 计算CRC-16 /// </summary> /// <param name="data"></param> /// <returns>高位在前</returns> public byte [] CRC_16(string data) { if ((data.L 阅读全文
posted @ 2014-04-04 15:11 wolf12 阅读(2948) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 下一页