Skip to content

Any Operations

Furkan Güngör edited this page Dec 3, 2021 · 2 revisions

Summary

Any queries can be run with EasyRepository.

public class MyClass
{
    private readonly IRepository repository;
    public MyClass(IRepository repository)
    {
        this.repository = repository;
    }

    public async Task<bool> AnyAsync()
    {
         return await repository.AnyAsync<Author>(a => a.Surname.Contains("t"));
    }
}

Clone this wiki locally