/// <summary>
 ///     删除实体记录集合
 /// </summary>
 /// <param name="entities"> 实体记录集合 </param>
 public void Delete(IEnumerable <TEntity> entities)
 {
     HContext.RegisterDel <TEntity, TKey>(entities);
     HContext.Commit();
 }
 /// <summary>
 ///     删除实体记录
 /// </summary>
 /// <param name="entity"> 实体对象 </param>
 public void Delete(TEntity entity)
 {
     HContext.RegisterDel <TEntity, TKey>(entity);
     HContext.Commit();
 }