摘要:
相当于ToDictionary只能一对一,ToLookUp可以一对多,所以Dictionary<string,string[]>其实应该用LookUp<string,string> using (var context = new KTStoreModel()) { context.Database 阅读全文
摘要:
1、SPList class SPList<T> : List<T> { public decimal Average(Func<T, decimal> s) { var list = (List<T>)this; decimal price = list.Average(s) * decimal. 阅读全文
摘要:
1、model 注意点1:List<ProductSet> Products的Products必须继承ICollection<T>; 注意点2:ProductSet.CategoryID属性,要XXXXXID; [Table("ProductSet")] public class ProductSe 阅读全文