var services = new ServiceCollection()
.AddPooledDbContextFactory<EFStorageDbContext<TestMessage>>(options =>
{
options.UseSqlServer(@"Server=(localdb)\mssqllocaldb;Database=TestDatabase;Trusted_Connection=True;");
options.ReplaceService<IModelCustomizer, SqlServerModelCostumizer<TestMessage>>();
})
.BuildServiceProvider()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #:sdk Microsoft.NET.Sdk | |
| #:package Microsoft.Extensions.Hosting@10.0.0-rc.2.25502.107 | |
| #:package Microsoft.Extensions.Logging@10.0.0-rc.2.25502.107 | |
| using Microsoft.Extensions.Configuration; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Microsoft.Extensions.Hosting; | |
| using Microsoft.Extensions.Logging; | |
| using Microsoft.Extensions.Options; | |
| using Microsoft.Extensions.Primitives; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "exporter": "dotnet-msbuild@1.0.0.0", | |
| "name": "Microsoft.PracticesChecker.Build.release.speedscope", | |
| "activeProfileIndex": 0, | |
| "$schema": "https://www.speedscope.app/file-format-schema.json", | |
| "shared": { | |
| "frames": [ | |
| { | |
| "name": "Frame=0" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmd.exe /c '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat" && set' | | |
| Out-String -Stream | Select-String -Pattern '^(.*?)=(.*)$' | | |
| ForEach-Object { Set-Content -Path "env:$($_.Matches.Groups[1].Value)" -Value $_.Matches.Groups[2].Value } | |
| Import-Module posh-git | |
| Set-PSReadlineOption -HistoryNoDuplicates -ShowToolTips -BellStyle Visual |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Enable-RemoteDesktop | |
| cinst fiddler4 | |
| cinst sysinternals | |
| cinst 7zip.install | |
| cinst notepadplusplus.install | |
| cinst linqpad4 | |
| cinst windirstat | |
| Install-WindowsUpdate -AcceptEula |