Created
September 21, 2015 19:55
-
-
Save MayogaX/775d08f4365251b4a6ad to your computer and use it in GitHub Desktop.
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 (JogadoresContext jc = new JogadoresContext()) | |
{ | |
Goleiro goleiro = new Goleiro(); | |
goleiro.Nome = "Rogerio Ceni"; | |
goleiro.GolsDefendidos = 9000; | |
jc.Goleiros.Add(goleiro); | |
Artilheiro artilheiro = new Artilheiro(); | |
artilheiro.Nome = "Pele"; | |
artilheiro.GolsMarcados = 1000; | |
jc.Artilheiros.Add(artilheiro); | |
jc.SaveChanges(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment