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
using SharpSvn; | |
using System.Collections.ObjectModel; | |
string repositoryUrl = "url_do_repositorio"; | |
string trunkPath = "/trunk"; | |
string tagPath = "/tags/tag_name"; | |
using (SvnClient client = new SvnClient()) | |
{ | |
// Obtém os IDs dos últimos 5 commits no trunk |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Reflection; | |
using FluentIL.Cecil; | |
using Mono.Cecil; | |
using Mono.Cecil.Cil; | |
using MethodAttributes = Mono.Cecil.MethodAttributes; |
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
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Reflection.Emit; | |
namespace Playground | |
{ | |
public class Program |
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
public struct OperationResult<T> | |
{ | |
public T Result { get; set; } | |
public Exception Exception { get; } | |
public bool IsSuccess { get; } | |
public OperationResult(T result) | |
{ | |
IsSuccess = true; | |
Exception = null; |
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
using System; | |
using System.Diagnostics.CodeAnalysis; | |
using System.Text.Json; | |
using System.Text.Json.Serialization; | |
var person = new Person("Alberto", "JobInfo", new JobInfo("CSF", "Software Architect")); | |
var serializeOptions = new JsonSerializerOptions(); | |
serializeOptions.Converters.Add(new BaseInfoConverter()); |
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
using Microsoft.EntityFrameworkCore.Infrastructure; | |
using Microsoft.EntityFrameworkCore.Migrations; | |
using Microsoft.EntityFrameworkCore.Migrations.Operations; | |
using Microsoft.EntityFrameworkCore.Migrations.Operations.Builders; | |
using System; | |
namespace ConsoleApp1.Migrations | |
{ | |
public partial class Initial : Migration | |
{ |
http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.Procedural.Importing.html
To back up your database, you call the rds_backup_database stored procedure.
Note You can't back up a database during the maintenance window, or any time Amazon RDS is in the process of taking a snapshot of the database. The following parameters are required:
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
#requires -Version 2 -Modules posh-git | |
function Write-Theme { | |
param( | |
[bool] | |
$lastCommandFailed, | |
[string] | |
$with | |
) |
BenchmarkDotNet=v0.13.0, OS=Windows 10.0.18363.1556 (1909/November2019Update/19H2)
Intel Core i7-8665U CPU 1.90GHz (Coffee Lake), 1 CPU, 8 logical and 4 physical cores
.NET SDK=5.0.202
[Host] : .NET 5.0.5 (5.0.521.16609), X64 RyuJIT
DefaultJob : .NET 5.0.5 (5.0.521.16609), X64 RyuJIT
NewerOlder