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
dbug: CoreEventId.SaveChangesStarting[10004] (Microsoft.EntityFrameworkCore.Update) | |
SaveChanges starting for 'TestContext'. | |
dbug: CoreEventId.DetectChangesStarting[10800] (Microsoft.EntityFrameworkCore.ChangeTracking) | |
DetectChanges starting for 'TestContext'. | |
dbug: CoreEventId.DetectChangesCompleted[10801] (Microsoft.EntityFrameworkCore.ChangeTracking) | |
DetectChanges completed for 'TestContext'. | |
dbug: RelationalEventId.ConnectionOpening[20000] (Microsoft.EntityFrameworkCore.Database.Connection) | |
Opening connection to database 'Timesheet' on server 'localhost,1433'. | |
dbug: RelationalEventId.ConnectionOpened[20001] (Microsoft.EntityFrameworkCore.Database.Connection) | |
Opened connection to database 'Timesheet' on server 'localhost,1433'. |
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 var transaction = context.Database.BeginTransaction(); | |
context.Add(new Employee { Name = "John Doe" }); | |
context.SaveChanges(); | |
transaction.CreateSavepoint("A"); | |
context.Add(new Employee { Name = "Jane Doe" }); | |
context.SaveChanges(); |
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
var employee = new Employee | |
{ | |
Name = "John Doe", | |
Entries = new List<TimeEntry> | |
{ | |
new TimeEntry | |
{ | |
Start = TimeSpan.FromHours(8), | |
End = TimeSpan.FromHours(12) | |
} |
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
var employee = new Employee | |
{ | |
Name = "John Doe", | |
Entries = new List<TimeEntry> | |
{ | |
new TimeEntry | |
{ | |
Start = TimeSpan.FromHours(8), | |
End = TimeSpan.FromHours(12) | |
} |
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
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) | |
{ | |
optionsBuilder | |
.UseSqlServer( | |
"Data Source=localhost,1433;Initial Catalog=Timesheet;User Id=sa;Password=Password1") | |
.LogTo(message => Debug.WriteLine(message)); | |
} |
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 class Contract | |
{ | |
public int Id { get; set; } | |
public string Url { get; set; } | |
} | |
public class ModelContext : DbContext | |
{ | |
public static readonly ILoggerFactory DebugLoggerFactory | |
= LoggerFactory.Create(builder => { builder.AddDebug(); }); |
This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"id": 4, | |
"uri": "https://dadosabertos.camara.leg.br/api/v2/orgaos/4", | |
"sigla": "MESA", | |
"nome": "Mesa Diretora da Câmara dos Deputados", | |
"apelido": "Mesa Diretora", | |
"codTipoOrgao": 1, | |
"tipoOrgao": "Comissão Diretora" | |
}, |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Composição partidária das Comissões da Camara Federal - Junho/2017</title> | |
<style> | |
body { | |
font-family: Cambria, Cochin, Georgia, Times, Times New Roman, serif | |
} |
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":"Comissão de Agricultura, Pecuária, Abastecimento e Desenvolvimento Rural","children":[{"name":"PDT","children":[{"name":"ASSIS DO COUTO"},{"name":"AFONSO MOTTA"},{"name":"MÁRIO HERINGER"},{"name":"DAGOBERTO NOGUEIRA"}]},{"name":"PSDB","children":[{"name":"IZAQUE SILVA"},{"name":"DOMINGOS SÁVIO"},{"name":"GUILHERME COELHO"},{"name":"NELSON PADOVANI"},{"name":"NILSON LEITÃO"},{"name":"RAIMUNDO GOMES DE MATOS"}]},{"name":"PP","children":[{"name":"AFONSO HAMM"},{"name":"DILCEU SPERAFICO"},{"name":"JERÔNIMO GOERGEN"},{"name":"LÁZARO BOTELHO"},{"name":"LUIS CARLOS HEINZE"},{"name":"NELSON MEURER"},{"name":"ROBERTO BALESTRA"},{"name":"BETO ROSADO"},{"name":"FAUSTO PINATO"},{"name":"LUIZ FERNANDO FARIA"},{"name":"ANDRÉ ABDON"},{"name":"JORGE BOEIRA"},{"name":"BETO SALAME"}]},{"name":"DEM","children":[{"name":"ALBERTO FRAGA"},{"name":"ONYX LORENZONI"},{"name":"CARLOS MELLES"},{"name":"HÉLIO LEITE"}]},{"name":"PMDB","children":[{"name":"ANDRÉ AMARAL"},{"name":"CELSO MALDANER"},{"name":"DULCE MIRANDA"},{"name" |
NewerOlder