摘要:
原来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(); ... 阅读全文
摘要:
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... 阅读全文