public virtual T GetById(string id) { return(Dbset.Find(id)); }
public Product Find(int productId) { return(Dbset.Find(productId)); }
public TEntity BuscarPorId(object id) { var entity = Dbset.Find(id); return(entity); }
public User GetById(int?id) { return(Dbset.Find(id)); }
/// <summary> /// 根据id来获取实体信息 /// </summary> /// <param name="id">实体ID</param> /// <returns></returns> public Tentity GetById(Guid id) { return(Dbset.Find(id)); }
/// <summary> /// 根据id删除数据 /// </summary> /// <param name="id"></param> public void Remove(Guid id) { Dbset.Remove(Dbset.Find(id)); }