摘要:
public class JSONHelper { public static string Serialize<T>(T obj) { var serializer = new DataContractJsonSerializer(obj.GetType()); MemoryStream ms = 阅读全文
摘要:
An object with the same key already exists in the ObjectStateManager. The ObjectStateManager cannot track multiple objects with the same key. DbSet已经加 阅读全文
摘要:
将表达式提炼到一个函数中,并将这个临时变量的所有应用点替换为对新函数的调用。 public class Class1 { private int _quantity = 12; private int _itemPrice = 8; public double GetPrice() { int ba 阅读全文