Exemplo n.º 1
0
        public DALLike Get(Expression <Func <DALLike, bool> > predicate)
        {
            Expression <Func <Like, bool> > lambda = predicate.ConvertExpression();
            Like ormLike = _context.Set <Like>().AsExpandable().Where(lambda).FirstOrDefault();

            return(ormLike?.ToDALEntity());
        }
Exemplo n.º 2
0
        public DALLike Get(int id)
        {
            Like ormLikes = _context.Set <Like>().FirstOrDefault(e => e.Id == id);

            return(ormLikes?.ToDALEntity());
        }