Elapsed Title
00:00:01.4098212 ADO Puro
00:00:01.4771617 Dapper
00:00:06.1009449 Entity Framework
00:00:01.6514433 Entity Framework Fast
00:00:06.5666193 NHibernate
View OperationResult.cs
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;
View FluentEFTypeMappingGenerator.cs
public static class FluentEFTypeMappingGenerator
private static bool _theKeyIsAlrearyWriten;
private static XDocument _documentationXml;
public static string GenerateForClass<T>()
var mainType = typeof(T);
var assemblyLocation = mainType.Assembly.Location;
var xmlFileDocumentation = Path.ChangeExtension(Path.Combine(Path.GetDirectoryName(assemblyLocation), Path.GetFileName(assemblyLocation)), "xml");
View InstallApplicationInsightsStatusMonitor.bat
mkdir c:\mustinstall
@powershell -command "& { (New-Object Net.WebClient).DownloadFile('', 'c:\mustinstall\webpi.msi') }"
msiexec /i c:\mustinstall\webpi.msi /quiet
cd "C:\Program Files\Microsoft\Web Platform Installer"
WebpiCmd.exe /Install /Products:ApplicationInsightsStatusMonitor /AcceptEula
View index.html
<div class="application">
<div class="sidebar">Sidebar</div>
<div class="main">
<div class="header">Header</div>
<div class="content">
<h3>Content with scroll</h3>
<h3>Content with scroll</h3>
<h3>Content with scroll</h3>
<h3>Content with scroll</h3>
<h3>Content with scroll</h3>
View Program.cs
using System;
using Microsoft.Extensions.DependencyInjection;
namespace ConsoleApp2
class Program
static void Main(string[] args)
var serviceCollection = new ServiceCollection();
View Email.cs
namespace EfAndCpf
public class Email
public string EmailValue { get; private set; }
private Email()
View Sortear.cs
var pessoas = new[] { "Douglas", "Cj", "Adn", "Alberto", "Miqueias", "Douglas C.", "Júnior Lessa", "Btn", "Psc", "Leandro", "Franklin" };
var r = new Random();
Console.WriteLine(string.Join(Environment.NewLine, pessoas.Select(p => Tuple.Create(p, r.Next())).OrderBy(t => t.Item2).Select((t, i) => $"{i + 1}. {t.Item1}")));
View instalaçã