SlideShare a Scribd company logo
1 of 15
EF FTQs
@julielerman
@bostoncodecamp
Entity Framework Frequently Tweeted Questions
Julie Lerman
Boston Code Camp 2013
Julie Lerman
                                                  consultant/mentor
                                                  Microsoft MVP, INETA Speaker,
                                                  ASPInsider, MCP, VTdotNET Leader
                                                  contact
                                                  jlerman@theDataFarm.com
                                                  www.thedatafarm.com
                                                  blog
                                                  theDataFarm.com/blog
                                                  twitter
                                                  @julielerman

Julie Lerman EFFTQs Boston Code Camp March 2013
                                                  book web site
                                                  LearnEntityFramework.com
Q: Should I move to EF5?




      A: Yes yes yes.
         Well okay for new projects: Yes yes yes.
         For deployed, you need to consider
          new dlls to distrib
Julie Lerman EFFTQs Boston Code Camp March 2013
Q: I’m moved to EF5. Where are my enums?

     .NET Version                             EF 5 Assembly                 What we call it

     .NET 4                                   entityframework.dll 4.4.0.0   EF5
     .NET 4.5                                 entityframework.dll 5.0.0.0   EF5




  A: Enums & Spatial are in .NET 4.5, not .NET 4
Julie Lerman EFFTQs Boston Code Camp March 2013
Q:When is EF6 Coming Out?


     entityframework.codeplex.com
              Making your way around the Open Source EF CodePlex Site

     open source
     EF6 Alpha 3 released March 3rd
             NuGet pre-release packages
                             A: sometime this year <shrug>
Julie Lerman EFFTQs Boston Code Camp March 2013
Q: Does EF only work with SQL Server?




   A: OMG NO! There are so many DB providers.
      Some open source, some $$. But many


Julie Lerman EFFTQs Boston Code Camp March 2013
Q: Can I use EF Code First w/existing DB?

  A: Yeah it’s a bit of a misnomer but you can
     reverse engineer from db.




Julie Lerman EFFTQs Boston Code Camp March 2013
P.S. it gets better in EF6 (code first from DB)




Julie Lerman EFFTQs Boston Code Camp March 2013
Q: What’s wrong w/my code first model?




   A: Use EF Power Tool to see what
      you’ve told ModelBuilder to do


Julie Lerman EFFTQs Boston Code Camp March 2013
Q: Having probs with EF 1:1. Can u help?




     A: Yep! 1:1 is confusing with code first. It
      needs guidance



Julie Lerman EFFTQs Boston Code Camp March 2013
Q: Hey EF pros: SaveChanges or Validate
     for custom logic?



     ValidateEntity for validation tasks
     SaveChanges for other last minute tasks ala
      updating a ModifiedDate field


Julie Lerman EFFTQs Boston Code Camp March 2013
Q: Why does EF insert existing data into
        my DB?


      A: guess: disconnected data & ur not using FKs 




                             Contact              Address       State
                                   SQL Insert      SQL Insert   SQL Insert


                                      “context.People.Add (Person)”
Julie Lerman EFFTQs Boston Code Camp March 2013
Where to tweet/ask your EF FT&AQs


     Twitter: #efhelp
     Stackoverflow
             use entity-framework tag for EF team attention
     Comments and questions on EF6
             entityframework.codeplex.com
Julie Lerman EFFTQs Boston Code Camp March 2013
Julie Lerman EFFTQs Boston Code Camp March 2013
Julie Lerman
                                                  consultant/mentor
                                                  Microsoft MVP, INETA Speaker,
                                                  ASPInsider, MCP, VTdotNET Leader
                                                  contact
                                                  jlerman@theDataFarm.com
                                                  www.thedatafarm.com
                                                  blog
                                                  theDataFarm.com/blog
                                                  twitter
                                                  @julielerman

Julie Lerman EFFTQs Boston Code Camp March 2013
                                                  book web site
                                                  LearnEntityFramework.com

More Related Content

Viewers also liked

Peritaje en Puerto Pilon
Peritaje en Puerto PilonPeritaje en Puerto Pilon
Peritaje en Puerto PilonTania Caplier
 
My music playlist
My music playlistMy music playlist
My music playlistAlexNesbit
 
阿郎壹古道 第二集
阿郎壹古道    第二集阿郎壹古道    第二集
阿郎壹古道 第二集Chang-chun Lee
 
presentacion ingles
presentacion inglespresentacion ingles
presentacion inglesgloriaE3195
 
Tarea 7-maria-elena-reyes-romero para enviar (1)
Tarea 7-maria-elena-reyes-romero para enviar (1)Tarea 7-maria-elena-reyes-romero para enviar (1)
Tarea 7-maria-elena-reyes-romero para enviar (1)elena reyes
 
Recanto Verde Jacarepagua
Recanto Verde JacarepaguaRecanto Verde Jacarepagua
Recanto Verde JacarepaguaLancamentosrj
 
How IoT helps Firms Optimize their Digital Performance. Economic Impact of IoT
How IoT helps Firms Optimize their Digital Performance. Economic Impact of IoTHow IoT helps Firms Optimize their Digital Performance. Economic Impact of IoT
How IoT helps Firms Optimize their Digital Performance. Economic Impact of IoTEconomic Strategy Institute
 
Mitä on moderni urheilumarkkinointi? Laitamainoksista asiakasymmärrykseen.
Mitä on moderni urheilumarkkinointi? Laitamainoksista asiakasymmärrykseen.Mitä on moderni urheilumarkkinointi? Laitamainoksista asiakasymmärrykseen.
Mitä on moderni urheilumarkkinointi? Laitamainoksista asiakasymmärrykseen.Arto Kuuluvainen
 
Tang 01 heat capacity and calorimetry
Tang 01   heat capacity and calorimetryTang 01   heat capacity and calorimetry
Tang 01 heat capacity and calorimetrymrtangextrahelp
 

Viewers also liked (12)

Peritaje en Puerto Pilon
Peritaje en Puerto PilonPeritaje en Puerto Pilon
Peritaje en Puerto Pilon
 
My music playlist
My music playlistMy music playlist
My music playlist
 
阿郎壹古道 第二集
阿郎壹古道    第二集阿郎壹古道    第二集
阿郎壹古道 第二集
 
presentacion ingles
presentacion inglespresentacion ingles
presentacion ingles
 
Vanessa Biscardi
Vanessa BiscardiVanessa Biscardi
Vanessa Biscardi
 
Tarea 7-maria-elena-reyes-romero para enviar (1)
Tarea 7-maria-elena-reyes-romero para enviar (1)Tarea 7-maria-elena-reyes-romero para enviar (1)
Tarea 7-maria-elena-reyes-romero para enviar (1)
 
Recanto Verde Jacarepagua
Recanto Verde JacarepaguaRecanto Verde Jacarepagua
Recanto Verde Jacarepagua
 
How IoT helps Firms Optimize their Digital Performance. Economic Impact of IoT
How IoT helps Firms Optimize their Digital Performance. Economic Impact of IoTHow IoT helps Firms Optimize their Digital Performance. Economic Impact of IoT
How IoT helps Firms Optimize their Digital Performance. Economic Impact of IoT
 
Mitä on moderni urheilumarkkinointi? Laitamainoksista asiakasymmärrykseen.
Mitä on moderni urheilumarkkinointi? Laitamainoksista asiakasymmärrykseen.Mitä on moderni urheilumarkkinointi? Laitamainoksista asiakasymmärrykseen.
Mitä on moderni urheilumarkkinointi? Laitamainoksista asiakasymmärrykseen.
 
Tang 05 bond energy
Tang 05   bond energyTang 05   bond energy
Tang 05 bond energy
 
Tang 01 heat capacity and calorimetry
Tang 01   heat capacity and calorimetryTang 01   heat capacity and calorimetry
Tang 01 heat capacity and calorimetry
 
B8. textos expositivos
B8. textos expositivosB8. textos expositivos
B8. textos expositivos
 

Similar to Julie Lerman: Entity Framework FTQs (Frequently Tweeted Questions)

Working With Sql Azure from Entity Framework On-Premises (Julia Lerman)
Working With Sql Azure from Entity Framework On-Premises (Julia Lerman)Working With Sql Azure from Entity Framework On-Premises (Julia Lerman)
Working With Sql Azure from Entity Framework On-Premises (Julia Lerman)Julie Lerman
 
The Sieve of Eratosthenes - Part 1
The Sieve of Eratosthenes - Part 1The Sieve of Eratosthenes - Part 1
The Sieve of Eratosthenes - Part 1Philip Schwarz
 
What's New in Entity Framework 4, by Julie Lerman
What's New in Entity Framework 4, by Julie LermanWhat's New in Entity Framework 4, by Julie Lerman
What's New in Entity Framework 4, by Julie LermanJulie Lerman
 
The Sieve of Eratosthenes - Part 1 - with minor corrections
The Sieve of Eratosthenes - Part 1 - with minor correctionsThe Sieve of Eratosthenes - Part 1 - with minor corrections
The Sieve of Eratosthenes - Part 1 - with minor correctionsPhilip Schwarz
 
C Condition and Loop part 2.pdf
C Condition and Loop part 2.pdfC Condition and Loop part 2.pdf
C Condition and Loop part 2.pdfvenkataprashanth3
 
Responding to extended writing electronically v3
Responding to extended writing electronically v3Responding to extended writing electronically v3
Responding to extended writing electronically v3john6938
 
ExpressionEngine 2: Total Domination
ExpressionEngine 2: Total DominationExpressionEngine 2: Total Domination
ExpressionEngine 2: Total Dominationguestf9c0bc
 
Proven ETL Developer Interview Questions to Assess and Hire ETL Developers
Proven ETL Developer Interview Questions to Assess and Hire ETL DevelopersProven ETL Developer Interview Questions to Assess and Hire ETL Developers
Proven ETL Developer Interview Questions to Assess and Hire ETL DevelopersInterview Mocha
 
The Heart of Data Modeling: The Best Data Modeler is a Lazy Data Modeler
The Heart of Data Modeling: The Best Data Modeler is a Lazy Data ModelerThe Heart of Data Modeling: The Best Data Modeler is a Lazy Data Modeler
The Heart of Data Modeling: The Best Data Modeler is a Lazy Data ModelerDATAVERSITY
 
Julie Lerman Agile Entity Framework (March 2010)
Julie Lerman Agile Entity Framework (March 2010)Julie Lerman Agile Entity Framework (March 2010)
Julie Lerman Agile Entity Framework (March 2010)Julie Lerman
 
How to build a GPT model.pdf
How to build a GPT model.pdfHow to build a GPT model.pdf
How to build a GPT model.pdfStephenAmell4
 
Lerman Vvs13 Entity Framework 4 And Wcf
Lerman Vvs13 Entity Framework 4 And WcfLerman Vvs13 Entity Framework 4 And Wcf
Lerman Vvs13 Entity Framework 4 And WcfJulie Lerman
 
Google Tag Manager Flash Tips @ MeasureCamp
Google Tag Manager Flash Tips @ MeasureCampGoogle Tag Manager Flash Tips @ MeasureCamp
Google Tag Manager Flash Tips @ MeasureCampPhil Pearce
 
Generative AI in CSharp with Semantic Kernel.pptx
Generative AI in CSharp with Semantic Kernel.pptxGenerative AI in CSharp with Semantic Kernel.pptx
Generative AI in CSharp with Semantic Kernel.pptxAlon Fliess
 
Introduction to Large Language Models and the Transformer Architecture.pdf
Introduction to Large Language Models and the Transformer Architecture.pdfIntroduction to Large Language Models and the Transformer Architecture.pdf
Introduction to Large Language Models and the Transformer Architecture.pdfsudeshnakundu10
 
Diving Into Entity Framework Code First
Diving Into Entity Framework Code FirstDiving Into Entity Framework Code First
Diving Into Entity Framework Code FirstNitesh Luharuka
 
Machine Learning in NLP
Machine Learning in NLPMachine Learning in NLP
Machine Learning in NLPVijay Ganti
 
Step by step python(week1)
Step by step python(week1)Step by step python(week1)
Step by step python(week1)Abhishek Jaiswal
 

Similar to Julie Lerman: Entity Framework FTQs (Frequently Tweeted Questions) (20)

Working With Sql Azure from Entity Framework On-Premises (Julia Lerman)
Working With Sql Azure from Entity Framework On-Premises (Julia Lerman)Working With Sql Azure from Entity Framework On-Premises (Julia Lerman)
Working With Sql Azure from Entity Framework On-Premises (Julia Lerman)
 
The Sieve of Eratosthenes - Part 1
The Sieve of Eratosthenes - Part 1The Sieve of Eratosthenes - Part 1
The Sieve of Eratosthenes - Part 1
 
What's New in Entity Framework 4, by Julie Lerman
What's New in Entity Framework 4, by Julie LermanWhat's New in Entity Framework 4, by Julie Lerman
What's New in Entity Framework 4, by Julie Lerman
 
The Sieve of Eratosthenes - Part 1 - with minor corrections
The Sieve of Eratosthenes - Part 1 - with minor correctionsThe Sieve of Eratosthenes - Part 1 - with minor corrections
The Sieve of Eratosthenes - Part 1 - with minor corrections
 
C Condition and Loop part 2.pdf
C Condition and Loop part 2.pdfC Condition and Loop part 2.pdf
C Condition and Loop part 2.pdf
 
Responding to extended writing electronically v3
Responding to extended writing electronically v3Responding to extended writing electronically v3
Responding to extended writing electronically v3
 
ExpressionEngine 2: Total Domination
ExpressionEngine 2: Total DominationExpressionEngine 2: Total Domination
ExpressionEngine 2: Total Domination
 
Proven ETL Developer Interview Questions to Assess and Hire ETL Developers
Proven ETL Developer Interview Questions to Assess and Hire ETL DevelopersProven ETL Developer Interview Questions to Assess and Hire ETL Developers
Proven ETL Developer Interview Questions to Assess and Hire ETL Developers
 
The Heart of Data Modeling: The Best Data Modeler is a Lazy Data Modeler
The Heart of Data Modeling: The Best Data Modeler is a Lazy Data ModelerThe Heart of Data Modeling: The Best Data Modeler is a Lazy Data Modeler
The Heart of Data Modeling: The Best Data Modeler is a Lazy Data Modeler
 
Julie Lerman Agile Entity Framework (March 2010)
Julie Lerman Agile Entity Framework (March 2010)Julie Lerman Agile Entity Framework (March 2010)
Julie Lerman Agile Entity Framework (March 2010)
 
How to build a GPT model.pdf
How to build a GPT model.pdfHow to build a GPT model.pdf
How to build a GPT model.pdf
 
CHATGPT.pptx
CHATGPT.pptxCHATGPT.pptx
CHATGPT.pptx
 
Lerman Vvs13 Entity Framework 4 And Wcf
Lerman Vvs13 Entity Framework 4 And WcfLerman Vvs13 Entity Framework 4 And Wcf
Lerman Vvs13 Entity Framework 4 And Wcf
 
Google Tag Manager Flash Tips @ MeasureCamp
Google Tag Manager Flash Tips @ MeasureCampGoogle Tag Manager Flash Tips @ MeasureCamp
Google Tag Manager Flash Tips @ MeasureCamp
 
Generative AI in CSharp with Semantic Kernel.pptx
Generative AI in CSharp with Semantic Kernel.pptxGenerative AI in CSharp with Semantic Kernel.pptx
Generative AI in CSharp with Semantic Kernel.pptx
 
Introduction to Large Language Models and the Transformer Architecture.pdf
Introduction to Large Language Models and the Transformer Architecture.pdfIntroduction to Large Language Models and the Transformer Architecture.pdf
Introduction to Large Language Models and the Transformer Architecture.pdf
 
Diving Into Entity Framework Code First
Diving Into Entity Framework Code FirstDiving Into Entity Framework Code First
Diving Into Entity Framework Code First
 
Machine Learning in NLP
Machine Learning in NLPMachine Learning in NLP
Machine Learning in NLP
 
Practical F#
Practical F#Practical F#
Practical F#
 
Step by step python(week1)
Step by step python(week1)Step by step python(week1)
Step by step python(week1)
 

More from Julie Lerman

EF Core in Containerized ASP.NET Core APIs
EF Core in Containerized ASP.NET Core APIsEF Core in Containerized ASP.NET Core APIs
EF Core in Containerized ASP.NET Core APIsJulie Lerman
 
Domain-Driven Design with Tender Loving Care (DDD with TLC)
Domain-Driven Design with Tender Loving Care (DDD with TLC)Domain-Driven Design with Tender Loving Care (DDD with TLC)
Domain-Driven Design with Tender Loving Care (DDD with TLC)Julie Lerman
 
What's New in Visual Studio 2017
What's New in Visual Studio 2017What's New in Visual Studio 2017
What's New in Visual Studio 2017Julie Lerman
 
A Tour of EF Core's (1.1) Most Interesting & Important Features
A Tour of EF Core's (1.1) Most Interesting & Important FeaturesA Tour of EF Core's (1.1) Most Interesting & Important Features
A Tour of EF Core's (1.1) Most Interesting & Important FeaturesJulie Lerman
 
EF6 or EF Core? How Do I Choose?
EF6 or EF Core? How Do I Choose?EF6 or EF Core? How Do I Choose?
EF6 or EF Core? How Do I Choose?Julie Lerman
 
Microsoft for developers open source and cross platform
Microsoft for developers  open source and cross platformMicrosoft for developers  open source and cross platform
Microsoft for developers open source and cross platformJulie Lerman
 
Entity Framework and Domain Driven Design
Entity Framework and Domain Driven DesignEntity Framework and Domain Driven Design
Entity Framework and Domain Driven DesignJulie Lerman
 
Entity Framework Today (May 2012)
Entity Framework Today (May 2012)Entity Framework Today (May 2012)
Entity Framework Today (May 2012)Julie Lerman
 
Perspectives on Entity Framework, Julie Lerman
Perspectives on Entity Framework, Julie LermanPerspectives on Entity Framework, Julie Lerman
Perspectives on Entity Framework, Julie LermanJulie Lerman
 
Entity Framework NYC Firestarter
Entity Framework NYC FirestarterEntity Framework NYC Firestarter
Entity Framework NYC FirestarterJulie Lerman
 
Getting Persistence Ignorant with Entity Framework, Julie Lerman
Getting Persistence Ignorant with Entity Framework, Julie LermanGetting Persistence Ignorant with Entity Framework, Julie Lerman
Getting Persistence Ignorant with Entity Framework, Julie LermanJulie Lerman
 
Building n-Tier ASP.NET WebForms with Entity Framework 4, Lerman
Building n-Tier ASP.NET WebForms with Entity Framework 4, LermanBuilding n-Tier ASP.NET WebForms with Entity Framework 4, Lerman
Building n-Tier ASP.NET WebForms with Entity Framework 4, LermanJulie Lerman
 
Persistence Ignorance in Entity Framework 4, Julie Lerman
Persistence Ignorance in Entity Framework 4, Julie LermanPersistence Ignorance in Entity Framework 4, Julie Lerman
Persistence Ignorance in Entity Framework 4, Julie LermanJulie Lerman
 
Persistence Ignorance in Entity Framework 4, Julie Lerman
Persistence Ignorance in Entity Framework 4, Julie LermanPersistence Ignorance in Entity Framework 4, Julie Lerman
Persistence Ignorance in Entity Framework 4, Julie LermanJulie Lerman
 
Entity Framework 4 and WCF
Entity Framework 4 and WCFEntity Framework 4 and WCF
Entity Framework 4 and WCFJulie Lerman
 
AgileEntity Framework 4
AgileEntity Framework 4AgileEntity Framework 4
AgileEntity Framework 4Julie Lerman
 
Lerman Adx303 Entity Framework 4 In Aspnet
Lerman Adx303 Entity Framework 4 In AspnetLerman Adx303 Entity Framework 4 In Aspnet
Lerman Adx303 Entity Framework 4 In AspnetJulie Lerman
 
Lerman Vvs14 Ef Tips And Tricks
Lerman Vvs14  Ef Tips And TricksLerman Vvs14  Ef Tips And Tricks
Lerman Vvs14 Ef Tips And TricksJulie Lerman
 
Using Entity Framework's New POCO Features: Part 1, by Julie Lerman
Using Entity Framework's New POCO Features: Part 1, by Julie LermanUsing Entity Framework's New POCO Features: Part 1, by Julie Lerman
Using Entity Framework's New POCO Features: Part 1, by Julie LermanJulie Lerman
 

More from Julie Lerman (20)

EF Core in Containerized ASP.NET Core APIs
EF Core in Containerized ASP.NET Core APIsEF Core in Containerized ASP.NET Core APIs
EF Core in Containerized ASP.NET Core APIs
 
Domain-Driven Design with Tender Loving Care (DDD with TLC)
Domain-Driven Design with Tender Loving Care (DDD with TLC)Domain-Driven Design with Tender Loving Care (DDD with TLC)
Domain-Driven Design with Tender Loving Care (DDD with TLC)
 
What's New in Visual Studio 2017
What's New in Visual Studio 2017What's New in Visual Studio 2017
What's New in Visual Studio 2017
 
A Tour of EF Core's (1.1) Most Interesting & Important Features
A Tour of EF Core's (1.1) Most Interesting & Important FeaturesA Tour of EF Core's (1.1) Most Interesting & Important Features
A Tour of EF Core's (1.1) Most Interesting & Important Features
 
EF6 or EF Core? How Do I Choose?
EF6 or EF Core? How Do I Choose?EF6 or EF Core? How Do I Choose?
EF6 or EF Core? How Do I Choose?
 
Microsoft for developers open source and cross platform
Microsoft for developers  open source and cross platformMicrosoft for developers  open source and cross platform
Microsoft for developers open source and cross platform
 
Entity Framework and Domain Driven Design
Entity Framework and Domain Driven DesignEntity Framework and Domain Driven Design
Entity Framework and Domain Driven Design
 
RavenDB Overview
RavenDB OverviewRavenDB Overview
RavenDB Overview
 
Entity Framework Today (May 2012)
Entity Framework Today (May 2012)Entity Framework Today (May 2012)
Entity Framework Today (May 2012)
 
Perspectives on Entity Framework, Julie Lerman
Perspectives on Entity Framework, Julie LermanPerspectives on Entity Framework, Julie Lerman
Perspectives on Entity Framework, Julie Lerman
 
Entity Framework NYC Firestarter
Entity Framework NYC FirestarterEntity Framework NYC Firestarter
Entity Framework NYC Firestarter
 
Getting Persistence Ignorant with Entity Framework, Julie Lerman
Getting Persistence Ignorant with Entity Framework, Julie LermanGetting Persistence Ignorant with Entity Framework, Julie Lerman
Getting Persistence Ignorant with Entity Framework, Julie Lerman
 
Building n-Tier ASP.NET WebForms with Entity Framework 4, Lerman
Building n-Tier ASP.NET WebForms with Entity Framework 4, LermanBuilding n-Tier ASP.NET WebForms with Entity Framework 4, Lerman
Building n-Tier ASP.NET WebForms with Entity Framework 4, Lerman
 
Persistence Ignorance in Entity Framework 4, Julie Lerman
Persistence Ignorance in Entity Framework 4, Julie LermanPersistence Ignorance in Entity Framework 4, Julie Lerman
Persistence Ignorance in Entity Framework 4, Julie Lerman
 
Persistence Ignorance in Entity Framework 4, Julie Lerman
Persistence Ignorance in Entity Framework 4, Julie LermanPersistence Ignorance in Entity Framework 4, Julie Lerman
Persistence Ignorance in Entity Framework 4, Julie Lerman
 
Entity Framework 4 and WCF
Entity Framework 4 and WCFEntity Framework 4 and WCF
Entity Framework 4 and WCF
 
AgileEntity Framework 4
AgileEntity Framework 4AgileEntity Framework 4
AgileEntity Framework 4
 
Lerman Adx303 Entity Framework 4 In Aspnet
Lerman Adx303 Entity Framework 4 In AspnetLerman Adx303 Entity Framework 4 In Aspnet
Lerman Adx303 Entity Framework 4 In Aspnet
 
Lerman Vvs14 Ef Tips And Tricks
Lerman Vvs14  Ef Tips And TricksLerman Vvs14  Ef Tips And Tricks
Lerman Vvs14 Ef Tips And Tricks
 
Using Entity Framework's New POCO Features: Part 1, by Julie Lerman
Using Entity Framework's New POCO Features: Part 1, by Julie LermanUsing Entity Framework's New POCO Features: Part 1, by Julie Lerman
Using Entity Framework's New POCO Features: Part 1, by Julie Lerman
 

Julie Lerman: Entity Framework FTQs (Frequently Tweeted Questions)

  • 1. EF FTQs @julielerman @bostoncodecamp Entity Framework Frequently Tweeted Questions Julie Lerman Boston Code Camp 2013
  • 2. Julie Lerman consultant/mentor Microsoft MVP, INETA Speaker, ASPInsider, MCP, VTdotNET Leader contact jlerman@theDataFarm.com www.thedatafarm.com blog theDataFarm.com/blog twitter @julielerman Julie Lerman EFFTQs Boston Code Camp March 2013 book web site LearnEntityFramework.com
  • 3. Q: Should I move to EF5? A: Yes yes yes. Well okay for new projects: Yes yes yes. For deployed, you need to consider new dlls to distrib Julie Lerman EFFTQs Boston Code Camp March 2013
  • 4. Q: I’m moved to EF5. Where are my enums? .NET Version EF 5 Assembly What we call it .NET 4 entityframework.dll 4.4.0.0 EF5 .NET 4.5 entityframework.dll 5.0.0.0 EF5 A: Enums & Spatial are in .NET 4.5, not .NET 4 Julie Lerman EFFTQs Boston Code Camp March 2013
  • 5. Q:When is EF6 Coming Out? entityframework.codeplex.com  Making your way around the Open Source EF CodePlex Site open source EF6 Alpha 3 released March 3rd NuGet pre-release packages A: sometime this year <shrug> Julie Lerman EFFTQs Boston Code Camp March 2013
  • 6. Q: Does EF only work with SQL Server? A: OMG NO! There are so many DB providers. Some open source, some $$. But many Julie Lerman EFFTQs Boston Code Camp March 2013
  • 7. Q: Can I use EF Code First w/existing DB? A: Yeah it’s a bit of a misnomer but you can reverse engineer from db. Julie Lerman EFFTQs Boston Code Camp March 2013
  • 8. P.S. it gets better in EF6 (code first from DB) Julie Lerman EFFTQs Boston Code Camp March 2013
  • 9. Q: What’s wrong w/my code first model? A: Use EF Power Tool to see what you’ve told ModelBuilder to do Julie Lerman EFFTQs Boston Code Camp March 2013
  • 10. Q: Having probs with EF 1:1. Can u help? A: Yep! 1:1 is confusing with code first. It needs guidance Julie Lerman EFFTQs Boston Code Camp March 2013
  • 11. Q: Hey EF pros: SaveChanges or Validate for custom logic? ValidateEntity for validation tasks SaveChanges for other last minute tasks ala updating a ModifiedDate field Julie Lerman EFFTQs Boston Code Camp March 2013
  • 12. Q: Why does EF insert existing data into my DB? A: guess: disconnected data & ur not using FKs  Contact Address State SQL Insert SQL Insert SQL Insert “context.People.Add (Person)” Julie Lerman EFFTQs Boston Code Camp March 2013
  • 13. Where to tweet/ask your EF FT&AQs Twitter: #efhelp Stackoverflow use entity-framework tag for EF team attention Comments and questions on EF6 entityframework.codeplex.com Julie Lerman EFFTQs Boston Code Camp March 2013
  • 14. Julie Lerman EFFTQs Boston Code Camp March 2013
  • 15. Julie Lerman consultant/mentor Microsoft MVP, INETA Speaker, ASPInsider, MCP, VTdotNET Leader contact jlerman@theDataFarm.com www.thedatafarm.com blog theDataFarm.com/blog twitter @julielerman Julie Lerman EFFTQs Boston Code Camp March 2013 book web site LearnEntityFramework.com