摘要:
public static void Detatch(Object entity) { Type t = entity.GetType(); System.Reflection.PropertyInfo[] properties = t.GetProperties(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance); foreach (var property in properties) { string name = property.Name; if (property.Prop 阅读全文