public IActionResult Index() { StringBuilder sb = new StringBuilder(); sb.AppendLine($"IEntityConfigurationAssemblyFinder => {_provider.GetService<IEntityConfigurationAssemblyFinder>().GetType()}"); sb.AppendLine($"IEntityConfigurationAssemblyFinder => {_provider.GetService<IEntityConfigurationAssemblyFinder>().GetHashCode()}"); sb.AppendLine($"IEntityConfigurationAssemblyFinder => {_provider.GetService<IEntityConfigurationAssemblyFinder>().GetHashCode()}"); sb.AppendLine($"IIdentityContract => {_identityContract.GetType()}"); sb.AppendLine($"IUnitOfWork => {_provider.GetService(typeof(IUnitOfWork)).GetType()}"); sb.AppendLine($"IUnitOfWork => {_provider.GetService(typeof(IUnitOfWork)).GetHashCode()}"); sb.AppendLine($"IUnitOfWork => {_provider.GetService(typeof(IUnitOfWork)).GetHashCode()}"); sb.AppendLine($"IRepository<User,int> => {_provider.GetService(typeof(IRepository<User, int>)).GetType()}"); sb.AppendLine($"当前用户数量: {_identityContract.Users().Count()}"); return(Content(sb.ToString())); }