public interface ICategoryRepository : ICommerceRepository<Category>
{
}
public class CategoryRepository : CommerceRepository<Category>, ICategoryRepository
{
public CategoryRepository(CommerceContext commerceContext) : base(commerceContext)
{
}
}
Results in an exception when profiledDbConnection.get_connectionstring fires
at StackExchange.Profiling.Data.ProfiledDbConnection.get_ConnectionString()
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.get_ConnectionString()
at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerConnection.get_IsMultipleActiveResultSetsEnabled()
at Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlServerCompiledQueryCacheKeyGenerator.GenerateCacheKey(Expression query, Boolean async)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteAsync[TResult](Expression query, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.ExecuteAsync[TResult](Expression expression, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1.GetAsyncEnumerator(CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Collections.Generic.IAsyncEnumerable<TEntity>.GetAsyncEnumerator(CancellationToken cancellationToken)
at System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1.GetAsyncEnumerator()
at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.<ToListAsync>d__65`1.MoveNext()
at
Anyone seen this before? Worked before upgrade to latest of Umbraco, UI Builder and latest Contentment...
Null exception on get_connectionstring in miniprofiler, scoped EF context in Contenment datalist?
Getting a null exception using a scoped EF core context in Contentment datalist.
Using this setup. EFCoreContext is wired up in the web project.
The datalist in my core project
The service:
The repo:
Results in an exception when profiledDbConnection.get_connectionstring fires
Anyone seen this before? Worked before upgrade to latest of Umbraco, UI Builder and latest Contentment...
We came across the same thing. Any solution to it?
Same here....
is working on a reply...