Globalcode – Open4educationGlobalcode – Open4education
Trilha .NET
Entity Framework 7.0
SoftwareDeveloper();
Way2 Technology - Florianopolis - SC
Caliel Costa
Globalcode – Open4education
Entity Framework
É um mapeador objeto-relacional que permite
desenvolvedores .NET trabalhar com dados
relacionais usando objetos de domínio.
Ele elimina a necessidade de desenvolvedores
escreverem código de acesso a dados.
Globalcode – Open4education
Release Notes
EF 3.5
• Visual Studio 2008 (.NET 3.5)
EF 4.0
• Visual Studio 2010 (.NET 4.0)
• POCO
• Lazy Loading
EF 4.1
• NuGET
• Code First
Globalcode – Open4education
Release Notes
EF 4.3
• Migrations
EF 5.0
• Visual Studio 2012 e 2010 (.NET 4.5 e 4)
• Enum
• Dados Espaciais
EF 6.0
• Visual Studio 2013 e 2012
• CodePlex
• Async
Globalcode – Open4education
Coding First ou after
Temos dois paradigmas:
• Coding First: primeiro você cria as classes de
dominio, através disso o banco de dados é gerado
• Database/Model First: com o banco modelado as
classes do domínio são geradas
Globalcode – Open4education
Entity Framework 7
Beta 7 - Agosto/2015
Beta 8 - Outubro/2015
RC 1 - Novembro 2015
RC 2 - 24/Maio/2016
RTM - 27/Jun/2016
Globalcode – Open4education
Entity Framework 7
Ruptura, escrito do zero
Github
Open Source
Visual Studio vNext
• ASP.NET 5 is now ASP.NET Core 1.0.
• .NET Core 5 is now .NET Core 1.0.
logo…
Globalcode – Open4educationGlobalcode – Open4education
Trilha .NET
Entity Core 1.0
SoftwareDeveloper();
Way2 Technology - Florianopolis - SC
Caliel Costa
Globalcode – Open4education
Entity Framework Core 1.0
• POCO (code first)
• Data Annotation
• Relationship
• Value Generation
• Transactions
• Basic LINQ
Globalcode – Open4education
Backlog
• LINQ improvements
• Complex/value types
• Lazy loading
• Stored procedures mapping
Globalcode – Open4education
Mudança Radical!!
No more EDMX, somente code first.
Todos os modelos serão representados em código.
Porem haverá ferramentas para fazer engenharia
reversa a partir do banco, gerando código
Por quê?
Simplicidade
Globalcode – Open4education
Database providers
• SQL Server
• SQLite
• In Memory
• Postgres (npgsql)
breve:
• AzureDB, Redis, NOSQL
• MySQL, Oracle
Globalcode – Open4education
Plataformas
• Full .NET (console, winforms, WPF)
• ASP.NET Core
• .NET Core (windows, OSX, Linux)
• UWP
Globalcode – Open4education
Código disponível em:
https://github.com/calielc/EFCore
Globalcode – Open4education
Futuro
EF Core ainda está em desenvolvimento
Usar com sabedoria
Globalcode – Open4education
Contato
Caliel Costa
https://www.linkedin.com/in/caliel
https://www.facebook.com/caliel.lc
https://twitter.com/calielc
https://github.com/calielc
http://calielcosta.com

TDC2016POA | Trilha .NET - .NET Entity Core 1.0