Model层的类如下:
public class Order
{
public int Id { get; set; }
public decimal Amount { get; set; }
public string CustomerName { get; set; }
public string Status { get
StructureMap是一款很老的IoC/DI容器,从2004年.NET 1.1支持至今。
一个使用例子
//创建业务接口
public interface IDispatchService { }
public interface ICourier { }
public interface IPaymentGateway { }
public inter