I'm able to perform Insertion & updation operations, but there is no interface available to get list of data from that table.
There is a generic method to generate DBSet, and that only provides interface for finding any entry.
var fooDetails = _db.Set<FooDetails>();
var data = fooDetails.FindAsync(......);
but, is there any interface like,
var fooDetails = _db.Set<FooDetails>();
var data = prescriptionDetails.ToListAsync();
Or do I need to add my own DBSet entry into the following code:-
public partial class FooObjectContext : DbContext, IDbContext
{
public new virtual DbSet<TEntity> Set<TEntity>() where TEntity : BaseEntity
{
return base.Set<TEntity>();
}
// Should I Add following line ???
public DbSet<FooDetails> FooDetails { get; set; }
}
If, required, I can add all relevant code.