This file contains 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
-- Restart sequence to 1, this not impact dacpac | |
ALTER SEQUENCE MySequence RESTART WITH 1 | |
-- Get all needed id to reach the desidered number, @range_first_value is mandatory | |
-- and returns the first (minimum or maximum) value of the sequence object used to calculate the requested range. | |
-- | |
-- https://learn.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-sequence-get-range-transact-sql?view=sql-server-ver16 | |
DECLARE @range_first_value SQL_VARIANT; |
This file contains 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
function Get-Installed { | |
[CmdletBinding()] | |
param ( | |
# The name of the software | |
[Parameter(Mandatory = $true)] | |
[string] $Name | |
) | |
begin { | |
$PATHS = @( |
This file contains 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
<!-- https://docs.microsoft.com/it-it/nuget/reference/nuget-config-file --> | |
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<packageSources> | |
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> | |
<add key="Test Source" value="d:\packages" /> | |
</packageSources> | |
</configuration> |
This file contains 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
function Switch-Virtualization | |
{ | |
# Advanced parameters | |
# https://ss64.com/ps/syntax-function-advanced.html | |
[CmdletBinding()] # Add cmdlet features. | |
Param( | |
[Parameter(Mandatory=$true)] | |
[ValidateSet("vmware", "hyperv")]$Virtualization, |
This file contains 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
class FiscalCode | |
{ | |
private static readonly string[] VOC = new string[] { "a", "e", "i", "o", "u" }; | |
public static string Name(string lastName, string firstName) | |
{ | |
return $"{Lastname(lastName)}{FirstName(firstName)}"; | |
} | |
private static string Lastname(string value) |