コード例 #1
0
 public Task <PlanModel> GetByUserIdAync(long userId)
 {
     return(Queryable.Where(PlanExpression.UserId(userId)).Where(p => p.Status == Status.Active).Select(PlanExpression.Model).SingleOrDefaultAsync());
 }
コード例 #2
0
 public Task <PlanModel> GetByIdAsync(long id)
 {
     return(Queryable.Where(PlanExpression.Id(id)).Select(PlanExpression.Model).SingleOrDefaultAsync());
 }