/// <summary>
 /// 添加
 /// </summary>
 /// <param name="t"></param>
 /// <returns></returns>
 public virtual bool AddEntity(T t)
 {
     entity.Entry <T>(t).State = System.Data.Entity.EntityState.Added;
     return(entity.SaveChanges() > 0);
 }