using StackExchange.Redis;
using Dapper;
using Microsoft.Data.SqlClient;
[HttpGet]
[Route("sql")]
public string Sql()
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
| $userPath = $env:USERPROFILE | |
| $pathExclusions = New-Object System.Collections.ArrayList | |
| $processExclusions = New-Object System.Collections.ArrayList | |
| $pathExclusions.Add('C:\Windows\Microsoft.NET') > $null | |
| $pathExclusions.Add('C:\Windows\assembly') > $null | |
| $pathExclusions.Add($userPath + '\.dotnet') > $null | |
| $pathExclusions.Add($userPath + '\.librarymanager') > $null |
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
| $userPath = $env:USERPROFILE | |
| $pathExclusions = New-Object System.Collections.ArrayList | |
| $processExclusions = New-Object System.Collections.ArrayList | |
| #$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null | |
| #$pathExclusions.Add($userPath + '\.dotnet') > $null | |
| #$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null |
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
| GitHub Developer Training | |
| • https://githubtraining.github.io/training-manual/#/01_getting_ready_for_class | |
| GitHub Skills and Learning Resources | |
| • https://skills.github.com/ | |
| • https://learn.microsoft.com/en-us/training/github/ | |
| • https://docs.github.com/en/get-started/quickstart/git-and-github-learning-resources | |
| GitHub Documentation | |
| • https://docs.github.com/en |
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
| name: Basics | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| first-job: | |
| runs-on: ubuntu-latest | |
| steps: |
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
| using System; | |
| public class Person | |
| { | |
| // Constructor that takes no arguments: | |
| public Person() | |
| { | |
| Name = "unknown"; | |
| } |
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
| public abstract class ValueObject | |
| { | |
| protected static bool EqualOperator(ValueObject left, ValueObject right) | |
| { | |
| if (ReferenceEquals(left, null) ^ ReferenceEquals(right, null)) | |
| { | |
| return false; | |
| } | |
| return ReferenceEquals(left, null) || left.Equals(right); | |
| } |
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
| # ASP.NET Core | |
| # Build and test ASP.NET Core projects targeting .NET Core. | |
| # Add steps that run tests, create a NuGet package, deploy, and more: | |
| # https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core | |
| trigger: | |
| - master | |
| pool: | |
| vmImage: ubuntu-latest |
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
| trigger: | |
| - master | |
| pool: | |
| vmImage: ubuntu-latest | |
| variables: | |
| workingDirectory: '$(System.DefaultWorkingDirectory)' | |
| stages: |
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
| using System; | |
| using Microsoft.AspNetCore.Mvc; | |
| using warsztaty14_11.Models; | |
| namespace warsztaty14_11.Controllers | |
| { | |
| [Route("[controller]")] | |
| public class PersonController : ControllerBase | |
| { | |
| // POST: /person |
NewerOlder