Example #1
0
 /// <summary>
 /// 要更新的实体
 /// </summary>
 /// <param name="snapshot">实体快照</param>
 /// <returns>更新构建器</returns>
 public SetBuilder <T> Set(TrackingEntity <T> snapshot)
 {
     return(Set(snapshot.GetChanges()));
 }
Example #2
0
 /// <summary>
 /// 要更新的实体
 /// </summary>
 /// <param name="entity">要更新的实体</param>
 /// <param name="refer">用于参照的实体</param>
 /// <returns>更新构建器</returns>
 public SetBuilder <T> Set(T entity, T refer)
 {
     return(Set(TrackingEntity <T> .GetChanges(entity, refer)));
 }