Is it possible to use .net core dependency injection into the object set as the data source to an ObjectDataSource?
Such that...
[DataObject]
class
Products
{
private
readonly
IProductRepo _repo;
public
Products(IProductRepo repo
{
_repo = repo;
}
[DataObjectMethod(DataObjectMethodType.Select)]
public
IEnumerable<Prodcut> GetProducts()
{
_repo.GetProducts();
}
}