Intro to Entity
Framework 6
KEN TUCKER
Presentation Overview
 Async support for query and save
 Connection Resiliency
 SQL logging
 Testability improvements
 Improved transaction support
 Performance improvements
 SqlCeFunctions
 Code first stored procedures
 Now Open Source
 Available on Code Plex
 Designer Open Source also
What you need to use Entity
Framework 6
• Visual Studio 2013
• Visual Studio 2012
Visual Studio
Versions
• Will install in both VS 2012 and VS 2013
• http://www.microsoft.com/en-
us/download/details.aspx?id=40762
Designer
• Entity framework 6 is available as a nuget
packageNuget
Demo 1
 Add entity framework 6 to app
 Create a data model
 Create a database
 Add a record
 Query db with ssdt tools
Demo 2
 Entity framework migrations
 Change model
 Check database is updated
Demo 3
 Code first stored procedures
 Use stored procedure for updating record
Demo 4
 Async queries
 DataContext from IoC
Demo 5
 SQL logging
Demo 7
 Change provider to use SQL compact
 Use SqlCe functions
Demo 8
 Create model from existing database
Demo 9
 Entity framework 6 customer data provider
Demo 10
 Use non Microsoft database Sqlite
Resources
Web &
Software Tools
Class web site
Collaboration
tools
Mobile/Other
apps
Social Media
Twitter
Facebook
Other
Labs, Study
Groups
Labs
Study groups
Contact Information
Email vb2ae@live.com Twitter @vb2ae
Blog
http://onteorasoftware.azur
ewebsites.net
Comment in Meetup group
Questions?

Entity framework 6

  • 1.
  • 2.
    Presentation Overview  Asyncsupport for query and save  Connection Resiliency  SQL logging  Testability improvements  Improved transaction support  Performance improvements  SqlCeFunctions  Code first stored procedures  Now Open Source  Available on Code Plex  Designer Open Source also
  • 3.
    What you needto use Entity Framework 6 • Visual Studio 2013 • Visual Studio 2012 Visual Studio Versions • Will install in both VS 2012 and VS 2013 • http://www.microsoft.com/en- us/download/details.aspx?id=40762 Designer • Entity framework 6 is available as a nuget packageNuget
  • 4.
    Demo 1  Addentity framework 6 to app  Create a data model  Create a database  Add a record  Query db with ssdt tools
  • 5.
    Demo 2  Entityframework migrations  Change model  Check database is updated
  • 6.
    Demo 3  Codefirst stored procedures  Use stored procedure for updating record
  • 7.
    Demo 4  Asyncqueries  DataContext from IoC
  • 8.
  • 9.
    Demo 7  Changeprovider to use SQL compact  Use SqlCe functions
  • 10.
    Demo 8  Createmodel from existing database
  • 11.
    Demo 9  Entityframework 6 customer data provider
  • 12.
    Demo 10  Usenon Microsoft database Sqlite
  • 13.
    Resources Web & Software Tools Classweb site Collaboration tools Mobile/Other apps Social Media Twitter Facebook Other Labs, Study Groups Labs Study groups
  • 14.
    Contact Information Email vb2ae@live.comTwitter @vb2ae Blog http://onteorasoftware.azur ewebsites.net Comment in Meetup group
  • 15.