记录点滴

记录生活

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  67 随笔 :: 2 文章 :: 233 评论 :: 17万 阅读
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

11 2012 档案

摘要:1、先来看看这个多线程编程多线程用于数据采集时,速度明显很快,下面是基本方法,把那个auto写成采集数据方法即可。using System;using System.Collections.Generic;using System.Text;using System.Threading;namespace ConsoleApplication1{class Program{static void Main(string[] args){try{ThreadPool.SetMaxThreads(3, 3); //设置最大线程数for (int i = 0; i < 10; i++){Thr 阅读全文
posted @ 2012-11-29 16:11 啊峰 阅读(7086) 评论(1) 推荐(0) 编辑

摘要:nopcommerce插件机制是相当优秀的,所以就分析一下然后拿来所用,集成到自己的网站架构里。写篇小文记录一下。不足和错误之处还望指正,nop版本2.51.Nop.Core.Plugins核心文件夹文件目录:这里面是Plugins的基类文件夹,实现插件机制的核心部分。IPluginFinder.cs接口:获取插件的信息接口,在ioc里的Nop.Web.Framework.DependencyRegistrar注册此接口。系统启动的时候会加载到内存里。//pluginsbuilder.RegisterType<PluginFinder>().As<IPluginFinder& 阅读全文
posted @ 2012-11-24 09:54 啊峰 阅读(1988) 评论(0) 推荐(0) 编辑

摘要:查看被锁表:select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_locks whereresource_type='OBJECT'spid 锁表进程 tableName 被锁表名 解锁:declare @spidint Set @spid= 57 --锁表进程declare @sql varchar(1000)set @sql='kill '+cast(@spidas varchar)exec(@sql) 阅读全文
posted @ 2012-11-21 15:18 啊峰 阅读(34294) 评论(2) 推荐(2) 编辑

点击右上角即可分享
微信分享提示