Example #1
0
 /// <summary>
 /// 更新除指定内容部分
 /// </summary>
 /// <typeparam name="EntityType"></typeparam>
 /// <typeparam name="TExclude"></typeparam>
 /// <param name="entity"></param>
 /// <param name="exclude">排除部分,如  _ => new { _.Code, _.CreateTime } </param>
 public virtual void UpdateEntityExclude <EntityType, TExclude>(EntityType entity, Func <EntityType, TExclude> exclude) where EntityType : class where TExclude : class
 {
     services.UpdateEntityExclude <EntityType, TExclude>()(this, entity);
 }