随笔分类 -  C#

摘要:Dapper是.Net下的一个简单orm框架,具有以下特点:1、简单,只需要一个文件即可(SqlMapper.cs)2、快速,下面是一个查询结果集在500以上的运行速度对比3、不要求特定的db provider,即不论是sqlite, sqlce, firebird, oracle, MySQL 还是 SQL Server,都能使用它。项目的github地址是:https://github.com/SamSaffron/dapper-dot-net 可以从这里下载SqlMapper.cs,然后添加到自己的项目中即可。下面通过一个例子来介绍Dapper的基本用法。假设有个数据库test,test 阅读全文
posted @ 2013-09-22 21:41 刘理想 阅读(2370) 评论(1) 推荐(2) 编辑
摘要:简要说明:可扩展程序包括三个部分,第一部分是个接口程序,包含IAppFunctionality接口,所有扩展都要实现该接口,第二部分是扩展,实现IAppFunctionality,第三部分是主程序,它检测与它同级目录下是否有plugins文件夹,如果没有,就创建,如果有,查找该目录下所有实现IAppFunctionality接口的程序集,并更新菜单。未添加扩展(即plugins下无dll程序)的运行情况安装插件之后点击Plugin1和Plugin2:程序源码:1234567891011121314151617//AuthorInfoAttribute.csusing System;namesp 阅读全文
posted @ 2011-06-02 10:30 刘理想 阅读(854) 评论(2) 推荐(0) 编辑
摘要:This article is about communicating through the PC's Serial COM RS-232 port using Microsoft .NET 2.0 or later by using the System.IO.Ports.SerialPort class. If you're looking for USB info,see here.Way in the Past...Back in my early (pre C# MVP) days, I had written an article onDevHoodtitledS 阅读全文
posted @ 2011-05-04 17:08 刘理想 阅读(10093) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2011-03-08 11:05 刘理想 阅读(4287) 评论(4) 推荐(1) 编辑