I have a Order
entity.
public class Order{
public string OrderNumber{get;set;}
public string CreateDate{get;set;}
......
}
Now, I want to add a getxxx
method to it.
public class Order{
public string OrderNumber{get;set;}
public string CreateDate{get;set;}
......
public Order GetOrderDetail(string orderNumber){
.....
}
}
But I do not want to instantiate it every time. So, I want to add static
to this method.
Whether this is in compliance with the DDD specification?