搜索到与相关的文章
各行各业

MEF中DirectoryPartCatalog的修改

varcatalog=newAttributedAssemblyPartCatalog(Assembly.GetExecutingAssembly());varcontainer=newCompositionContainer(catalog.CreateResolver());DirectoryPartCatalog更名为DirectoryCatalog真晕,都改了一年多了现在才知道,现在网上大部分的实例仍然是改名之前的老代码,新技术更新快但应用实在太慢

系统 2019-08-12 09:26:58 2272

各行各业

POI操作WORD

通过下面的两种方法可以从文档里读取所有字符性的内容(忽略字符的属性)。通过输出流来写到文本文件中。publicstaticvoidgetWordContent(StringfileName)throwsException{FileInputStreamin=newFileInputStream(newFile(fileName));WordExtractorextractor=newWordExtractor(in);Stringtext=extracto

系统 2019-08-12 09:26:50 2272

各行各业

github使用心得

github使用教程:1.在系统天堂下载GithubforWindows,然后安装就不说了2.登陆,安装好后打开GitHub,用你的GitHub账号登陆。需要注意的事,GithubforWindows会帮你创建SSHKey,你打开邮件应该会收到邮件帮你创建SSHKey的信息,这也省了不少事:3.创建一个仓库。点击上面的“+Add”按钮创建一个新的仓库,输入相关信息:4.新建的仓库还没有真正地提交到本地仓库,相当于这只是一个new的修改,github简化了一

系统 2019-08-12 09:26:47 2272

数据库相关

sql分页查询

insertintoInfoselect'admin36'fromInfo;--FK插入法selectCOUNT(*)fromInfo;--notin实现分页查询declare@pageSizeintset@pageSize=10;--行数declare@pageNointset@pageNo=1000;--页数selecttop(10)*fromInfowhereidnotin(selecttop(@pageSize*(@pageNo-1))idfrom

系统 2019-08-12 01:55:23 2272

数据库相关

pk+uk+fk+index

1.pk数据库表分为实体表和关系表。实体表是用来描述在domain(领域模型)里确实存在的实体(人、财、物、时间、空间)及实体元素发生的活动(转移)。实体表的pk一般由系统自动生成(SYS_GUID()和sequence)。关系表是用来描述两张实体表之间的多对多关系,关系表的pk一般是两张实体表pk的联合,此pk同时具有uk的功能,所以关系表不用再建uk。--查询pk缺失的表selecttable_namefromuser_tablestwherenote

系统 2019-08-12 01:54:44 2272

数据库相关

js字符串函数

JS自带函数concat将两个或多个字符的文本组合起来,返回一个新的字符串。vara="hello";varb=",world";varc=a.concat(b);alert(c);//c="hello,world"indexOf返回字符串中一个子串第一处出现的索引(从左到右搜索)。如果没有匹配项,返回-1。varindex1=a.indexOf("l");//index1=2varindex2=a.indexOf("l",3);//index2=3cha

系统 2019-08-12 01:53:40 2272

数据库相关

HDU 4390 Number Sequence 二分

题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=4390#include#include#include#include#include#include#include#include#include#include#include#include

系统 2019-08-12 01:51:31 2272

各行各业

使用Reporting Services中的窗体身份验证

使用ReportingServices中的窗体身份验证发布日期:8/18/2004|更新日期:8/18/2004MicrosoftCorporation适用范围:Microsoft®SQLServer™2000ReportingServices摘要:了解有关ReportingServices安全扩展方面的知识,着重学习窗体身份验证。此外,下载和部署ReportingServices的窗体身份验证扩展示例。要安装示例代码,请下载FormsAuthentica

系统 2019-08-12 01:33:26 2272

各行各业

Thrift - GeilThings

Thrift-GeilThingsThriftFromGeilThingsJumpto:navigation,searchThriftGeneralVersion0.9.0Stable0.9.0FunctionRemoteprocedurecallframeworkScriptsLinksWebsiteThriftWikipediaThriftContents1General1.1Seealso2InstallingThrift2.1InstallingT

系统 2019-08-12 01:33:19 2272