Testing subscript and superscript
Testing subscript subscript level 2
Testing superscript superscript level 2
Testing subscript and superscript
Testing subscript subscript level 2
Testing superscript superscript level 2
public string GetVirtualPath(VirtualPathContext context) | |
{ | |
foreach (var matcherParameter in _matcher.Template.Parameters) | |
{ | |
context.Values.Remove(matcherParameter.Name); // make sure none of the domain-placeholders are appended as query string parameters | |
} | |
return _innerRoute.GetVirtualPath(context); | |
} |
using System; | |
using System.IO; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using Microsoft.EntityFrameworkCore; | |
using Microsoft.EntityFrameworkCore.Metadata; | |
using Microsoft.Extensions.Configuration; | |
namespace DalSoft.Data |
using Microsoft.AspNetCore.Identity; | |
using Microsoft.AspNetCore.Identity.EntityFrameworkCore; | |
using System.Linq; | |
namespace My.App.Data | |
{ | |
public class DbInitializer : IDbInitializer | |
{ | |
private readonly ApplicationDbContext _context; | |
private readonly UserManager<ApplicationUser> _userManager; |
# Requires PowerShell 6+ | |
# Some commands will fail if the PostgreSQL bin directory is not in your PATH | |
# The pg_ctl reload command may require running it with Administrator rights | |
$data_directory, $pg_hba_conf_path, $pg_ident_conf_path = psql -c "SELECT setting FROM pg_settings WHERE name IN ('data_directory', 'hba_file', 'ident_file') ORDER BY name" -tU postgres | | |
%{ $_.Trim() } | | |
where { $_.Length -gt 0 } | | |
Convert-Path | |
# Add a user mapping for domain users (or local users if your computer is not in a domain) to your pg_ident.conf |