public BizResult <T> GetSingle(Expression <Func <T, bool> > whereExpression) { var res = sdb.GetSingle <T>(whereExpression); if (res == null) { return(null); } return(new BizResult <T> { Data = res, Msg = "成功", Success = true }); }
/// <summary> /// Query Single data by condition /// </summary> /// <param name="whereExpression"></param> /// <returns></returns> public T GetSingle(Expression <Func <T, bool> > whereExpression) { return(currentDb.GetSingle(whereExpression)); }
public TEntity GetModel(Expression <Func <TEntity, bool> > where) { return(_dbSet.GetSingle(where)); }
public Club Get(int Id) { return(rdb.GetSingle(p => p.Id == Id)); }
public T Get(Expression <Func <T, bool> > whereExpression) { var test = new SimpleClient <T>(Db); return(test.GetSingle(whereExpression)); }
public RefereeApply Get(int id) { return(rdb.GetSingle(p => p.ApplyUserId == id)); }