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
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