摘要: 原来Mock可以这样子用。1. 接口ISerialPort public interface ISerialPort { string PortName { get; } int BaudRate { get; } int DataBits { get; } Parity Party { get; } StopBits StopBits { get; } int BytesToRead { get; } bool IsOpen { get; } void Open(); ... 阅读全文
posted @ 2012-03-12 22:14 joe62 阅读(603) 评论(0) 推荐(0) 编辑
摘要: AdventureWorksLT2008Entities db = new AdventureWorksLT2008Entities(); var querys = db.Products.Where(p => p.ProductID % 55 == 0).Select(p => new { Id = p.ProductID, LPrice = p.ListPrice, Name = p.Nam... 阅读全文
posted @ 2012-03-12 21:46 joe62 阅读(2388) 评论(2) 推荐(0) 编辑