摘要:
public static T CopyEntity(NorthwindEntities ctx, T entity, bool copyKeys = false) where T : EntityObject { T clone = ctx.CreateObject(); PropertyInfo[] pis = entity.GetType().GetProperties(); foreach (PropertyInfo pi in pis) { EdmSca... 阅读全文