03 2015 档案
摘要:using System.Data.Common; private void Method1() { DataTable table = DbProviderFactories.GetFactoryClasses(); dataGridVi...
阅读全文
摘要:https://msdn.microsoft.com/zh-cn/library/system.data.sqlclient.sqltransaction(v=vs.110).aspxprivate static void ExecuteSqlTransaction(string connectio...
阅读全文
摘要:System.Data.SqlTypesSqlDbType 枚举类型Specifies SQL Server-specific data type of a field, property, for use in a SqlParameter.
阅读全文
摘要:菜单栏上的工具-->选项-->设计器-->表设计器和数据库设计器 取消勾选 阻止保存要求重新创建表的更改 Tools-->Options-->Designers-->Table and Database Designers 安装了redgate的插件,似乎这个勾选不去掉也可以工作
阅读全文
摘要:Varchar往往用来保存可变长度的字符串。简单的说,我们只是给其固定了一个最大值,然后系统会根据实际存储的数据量来分配合适的存储空间。为此相比CHAR字符数据而言,其能够比固定长度类型占用更少的存储空间。不过在实际工作中,由于某系特殊的原因,会在这里设置例外。如管理员可以根据需要指定ROW_FOR...
阅读全文
摘要:bigint对应的是Int64 【long】int对应的是Int32 【int】smallint对应的是Int16 【short】tinyint对应的是 【byte】
阅读全文
摘要:方法一 使用图形界面操作 In SSMS, right click on the server and choose "Properties". On the "Database Settings" page of the Server Properties window, specify your
阅读全文
摘要:1.使用如下配置 http://www.cnblogs.com/chucklu/p/5404813.html 2.调用 2.1需要调用2个函数 调用的先后顺序是 LogFactoryBase("App1.config");//关于加载配置文件,可以直接通过AppDomain.CurrentDomai
阅读全文
摘要:http://docs.supersocket.net/v1-6/zh-CN/Command-Filter命令筛选的例子从CommandFilterAttribute派生出新的命令筛选类,然后将这些派生出来的类,放到命令类的上方[]最后在执行命令的时候会触发OnCommandExecuting和On...
阅读全文
摘要:https://msdn.microsoft.com/zh-cn/library/bz33kx67(v=vs.80).aspx
阅读全文
摘要:程序运行起来之后,需要用多个telnet客户端来进行测试连接的命令为conn deviceNumber广播命令为broa message需要注意的是:示例代码有bug,broadcastDict本身的存储是CXXX和设备集合的对应 broadcastDict["C001"] = new List {...
阅读全文
摘要:1.首先创建一个控制台项目2.添加引用【红色的都是将项目添加为引用,其中蓝色的log4net是直接从源代码下的Reference文件夹下引用的dll】3.写代码1)首先将config配置好【http://www.cnblogs.com/chucklu/p/4337848.html】2)修改Progr...
阅读全文
摘要:源代码的地址:https://github.com/kerryjiang/SuperSocket安装git之后,可以使用命令行git clone https://github.com/kerryjiang/SuperSocket.git或者使用tortoisegit的右键菜单中的克隆选项,填入的地址...
阅读全文
摘要:首先确认下配置文件中的内容第一部分configSections【需要注意的是name=superSocket】 第二部分appSettings【需要注意的是key=ServiceName】 第三部分superSocket【】 ...
阅读全文
摘要:https://github.com/dodev/RoadDataCollector A tool for collecting information from sensor devices.core - dodevgui - dotmeerlocaldb - naitharremotedb - ...
阅读全文
摘要:1.新建一个空白的解决方案文件,然后添加新建项目,项目类型为WCF服务应用程序,CH35Ex012.添加新建控制台应用程序Ch35Ex01Client3.生成解决方案4.右键Ch35Ex01Client添加服务引用5.弹出的对话框中点击发现6.选中服务,并展开结点,查看细节7.OK确认8.编辑Mai...
阅读全文
摘要:在命名空间System.Collections下的CollectionBase类The CollectionBase class exposes the interfaces IEnumerable , ICollection , and IList but onlyCollectionBase 类...
阅读全文
摘要:http://www.entityframeworktutorial.net/EntityFramework5/setup-entityframework-environment.aspxEntity Framework 5.0 API was distributed in two places, ...
阅读全文
摘要:1.什么是EntityFramework?http://www.entityframeworktutorial.net/what-is-entityframework.aspxWriting and managing ADO.Net code for data access is a tedious...
阅读全文