// for test purposes only. normally you would add arguments here (request/query) public TestEntity?FindOne() => EntityRetriever.FindOne(new SelectCommandBuilder() .Select("*") .WithTop(1) .From("MyTable") .Where("Field = Value") .Build());
public TEntity?Find(TIdentity identity) => EntityRetriever.FindOne(IdentitySelectCommandProvider.Create(identity, DatabaseOperation.Select));