摘要: 【转http://www.cnblogs.com/lambertqin/archive/2012/03/13/2393918.html】一段很小的代码,注册当前目录下所有的DLL到GAC,请先把gacutil.exe复制到同一个目录。$Path = Get-Location$Dir = Get-ChildItem "$Path" -Recurse$Dlls = $Dir | Where { $_.extension -eq ".dll" }$Dlls | ForEach-Object { .\gacutil.exe -i $_.name } 阅读全文
posted @ 2012-03-19 12:57 小师傅 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 【转http://www.cnblogs.com/love007/archive/2012/03/14/2395624.html】1、日期类型查询,需要转换,方法如下: //转换时间 string startdate = SPUtility.CreateISO8601DateTimeFromSystemDateTime(DateTime.Now);2、取用户类型的值 public List<WorkManEntity> GetUsersFromSPFieldUser(SPListItem item,string key) { List<WorkManEntity> fU 阅读全文
posted @ 2012-03-19 12:55 小师傅 阅读(274) 评论(0) 推荐(0) 编辑