Ejemplo n.º 1
0
        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()));
        }
Ejemplo n.º 2
0
 public IActionResult Index()
 {
     ViewBag.Data = _identityContract.GetType().FullName;
     return(View());
 }