We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi
The extension methods seems to work only for properties of type DbSet but not on any methods having similar signature Error message:
QueryableValues only works on a DbContext with at least one public DbSet<> or IDbSet<>.
As per source code
Usage exemple:
var codes = this.dbContext.AsQueryableValues(searchParameter.MyCodes); this.dbContext.Set<MyEntity>().AsQueryable().Where(e => codes.Contains(e.Code)));
Could the extension work with EF6 methods returning DbSet<> as well ? Or any advise ?
Something like this in DbSetByDbContextFactory
DbSetByDbContextFactory
var entityType = this.dbContext.GetType() .GetMethods() .Select(i => i.ReturnParameter.ParameterType) .Where(i => i.IsGenericType && isDbSet(i.GetGenericTypeDefinition())) .Select(i => i.GenericTypeArguments[0]) .FirstOrDefault();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi
The extension methods seems to work only for properties of type DbSet but not on any methods having similar signature
Error message:
As per source code
Usage exemple:
Could the extension work with EF6 methods returning DbSet<> as well ?
Or any advise ?
Something like this in
DbSetByDbContextFactory
The text was updated successfully, but these errors were encountered: