magic unicorns and beyond - sdd...

25
Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel Software, Inc @keburnell · DotNetDevDude.com

Upload: others

Post on 28-Jun-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel

Magic Unicorns and Beyond

Keith Burnell

Senior Software EngineerFalafel Software, Inc

@keburnell · DotNetDevDude.com

Page 2: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel

Little about me

• Microsoft MVP: ASP.NET/IIS

• Senior Software Engineer at Falafel Software, Inc.

• Been developing software for > 15 years

• Primary focus on the Web stack

• Speaker

• Author

Page 3: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel
Page 4: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel
Page 5: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel
Page 6: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel
Page 7: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel
Page 8: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel
Page 9: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel
Page 10: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel
Page 11: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel
Page 12: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel
Page 13: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel
Page 14: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel
Page 15: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel
Page 16: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel
Page 17: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel
Page 18: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel

When to Use Which• Fluent

• Used solely to make database behave correctly

• Should have no impact on the design and/or behavior of your domain model

• Attribute• Used for configuration that applies to your domain model

• May or may not impact the database.

Page 19: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel
Page 20: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel

(cuz 4 + 1 = 5)

Page 21: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel
Page 22: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel
Page 23: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel
Page 24: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel

What Did We Learn?• We write data-centric apps

• There is a better way

• If at first you don’t succeed…

• 4 = 2

• 4.1 = Magic Unicorn

• Code-First = the way it should be

• And it keeps getting getter

Page 25: Magic Unicorns and Beyond - SDD Conferencesddconf.com/brands/sdd/library/EF_Code_First_Magic_Unicorns.pdf · Magic Unicorns and Beyond Keith Burnell Senior Software Engineer Falafel

Thank You!

• Slides and Code:

– github.com/KBurnell/EfCodeFirstMagicUnicornAndBeyond

• Me:

– Twitter: @KeBurnell

– Blog: DotNetDevDude.com

– E-Mail: [email protected]