Your SlideShare is downloading. ×
0
Julie Lerman: Entity Framework FTQs (Frequently Tweeted Questions)
Julie Lerman: Entity Framework FTQs (Frequently Tweeted Questions)
Julie Lerman: Entity Framework FTQs (Frequently Tweeted Questions)
Julie Lerman: Entity Framework FTQs (Frequently Tweeted Questions)
Julie Lerman: Entity Framework FTQs (Frequently Tweeted Questions)
Julie Lerman: Entity Framework FTQs (Frequently Tweeted Questions)
Julie Lerman: Entity Framework FTQs (Frequently Tweeted Questions)
Julie Lerman: Entity Framework FTQs (Frequently Tweeted Questions)
Julie Lerman: Entity Framework FTQs (Frequently Tweeted Questions)
Julie Lerman: Entity Framework FTQs (Frequently Tweeted Questions)
Julie Lerman: Entity Framework FTQs (Frequently Tweeted Questions)
Julie Lerman: Entity Framework FTQs (Frequently Tweeted Questions)
Julie Lerman: Entity Framework FTQs (Frequently Tweeted Questions)
Julie Lerman: Entity Framework FTQs (Frequently Tweeted Questions)
Julie Lerman: Entity Framework FTQs (Frequently Tweeted Questions)
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Julie Lerman: Entity Framework FTQs (Frequently Tweeted Questions)

1,478

Published on

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,478
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. EF FTQs@julielerman@bostoncodecampEntity Framework Frequently Tweeted QuestionsJulie LermanBoston 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 @julielermanJulie 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 distribJulie 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 4Julie 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 manyJulie 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 doJulie 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 guidanceJulie 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 fieldJulie 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.comJulie 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 @julielermanJulie Lerman EFFTQs Boston Code Camp March 2013 book web site LearnEntityFramework.com

×