diff --git a/src/Identity/EntityFrameworkCore/ref/Microsoft.AspNetCore.Identity.EntityFrameworkCore.netcoreapp3.0.cs b/src/Identity/EntityFrameworkCore/ref/Microsoft.AspNetCore.Identity.EntityFrameworkCore.netcoreapp3.0.cs index 3a94922408..4b173fa883 100644 --- a/src/Identity/EntityFrameworkCore/ref/Microsoft.AspNetCore.Identity.EntityFrameworkCore.netcoreapp3.0.cs +++ b/src/Identity/EntityFrameworkCore/ref/Microsoft.AspNetCore.Identity.EntityFrameworkCore.netcoreapp3.0.cs @@ -63,7 +63,7 @@ namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore { public RoleStore(TContext context, Microsoft.AspNetCore.Identity.IdentityErrorDescriber describer = null) { } public bool AutoSaveChanges { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } - public TContext Context { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } + public virtual TContext Context { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Identity.IdentityErrorDescriber ErrorDescriber { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } public virtual System.Linq.IQueryable Roles { get { throw null; } } public virtual System.Threading.Tasks.Task AddClaimAsync(TRole role, System.Security.Claims.Claim claim, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -106,7 +106,7 @@ namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore { public UserOnlyStore(TContext context, Microsoft.AspNetCore.Identity.IdentityErrorDescriber describer = null) : base (default(Microsoft.AspNetCore.Identity.IdentityErrorDescriber)) { } public bool AutoSaveChanges { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } - public TContext Context { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } + public virtual TContext Context { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected Microsoft.EntityFrameworkCore.DbSet UserClaims { get { throw null; } } protected Microsoft.EntityFrameworkCore.DbSet UserLogins { get { throw null; } } public override System.Linq.IQueryable Users { get { throw null; } } @@ -165,7 +165,7 @@ namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore { public UserStore(TContext context, Microsoft.AspNetCore.Identity.IdentityErrorDescriber describer = null) : base (default(Microsoft.AspNetCore.Identity.IdentityErrorDescriber)) { } public bool AutoSaveChanges { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } - public TContext Context { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } + public virtual TContext Context { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public override System.Linq.IQueryable Users { get { throw null; } } public override System.Threading.Tasks.Task AddClaimsAsync(TUser user, System.Collections.Generic.IEnumerable claims, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public override System.Threading.Tasks.Task AddLoginAsync(TUser user, Microsoft.AspNetCore.Identity.UserLoginInfo login, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } diff --git a/src/Identity/EntityFrameworkCore/src/RoleStore.cs b/src/Identity/EntityFrameworkCore/src/RoleStore.cs index 04745e024c..8cacb89b5f 100644 --- a/src/Identity/EntityFrameworkCore/src/RoleStore.cs +++ b/src/Identity/EntityFrameworkCore/src/RoleStore.cs @@ -103,7 +103,7 @@ namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore /// /// Gets the database context for this store. /// - public TContext Context { get; private set; } + public virtual TContext Context { get; private set; } /// /// Gets or sets the for any error that occurred with the current operation. diff --git a/src/Identity/EntityFrameworkCore/src/UserOnlyStore.cs b/src/Identity/EntityFrameworkCore/src/UserOnlyStore.cs index 645156d208..9358ee3fce 100644 --- a/src/Identity/EntityFrameworkCore/src/UserOnlyStore.cs +++ b/src/Identity/EntityFrameworkCore/src/UserOnlyStore.cs @@ -109,7 +109,7 @@ namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore /// /// Gets the database context for this store. /// - public TContext Context { get; private set; } + public virtual TContext Context { get; private set; } /// /// DbSet of users. diff --git a/src/Identity/EntityFrameworkCore/src/UserStore.cs b/src/Identity/EntityFrameworkCore/src/UserStore.cs index 85af27631b..28ae320a56 100644 --- a/src/Identity/EntityFrameworkCore/src/UserStore.cs +++ b/src/Identity/EntityFrameworkCore/src/UserStore.cs @@ -123,7 +123,7 @@ namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore /// /// Gets the database context for this store. /// - public TContext Context { get; private set; } + public virtual TContext Context { get; private set; } private DbSet UsersSet { get { return Context.Set(); } } private DbSet Roles { get { return Context.Set(); } }