示例#1
0
        public User Get(long id)
        {
            User user = null;

            if (user == null)
            {
                var expression = PredicateBuilder.Create <User>(d => d.Id == id && d.DeletedDate == null);
                user = DbStore.ExecuteExpressionFirst <User>(expression);
            }
            return(user);
        }
示例#2
0
 public User Get(Expression <Func <User, bool> > expression)
 {
     return(DbStore.ExecuteExpressionFirst <User>(expression));
 }