+ All Categories
Home > Documents > EF + DDD = true?

EF + DDD = true?

Date post: 02-Jan-2016
Category:
Upload: roth-serrano
View: 32 times
Download: 0 times
Share this document with a friend
Description:
EF + DDD = true?. by Jimmy Nilsson. About Jimmy Nilsson. Primarily a developer and architect, but also a trainer and author Blog: JimmyNilsson.com/blog/ Twitter: twitter.com/JimmyNilsson Author of ” Applying Domain-Driven Design and Patterns ” and ” .NET Enterprise Design ” - PowerPoint PPT Presentation
Popular Tags:
13
EF + DDD = true? by Jimmy Nilsson
Transcript
Page 1: EF + DDD = true?

EF + DDD = true?

by Jimmy Nilsson

Page 2: EF + DDD = true?

About Jimmy Nilsson

Primarily a developer and architect,

but also a trainer and author

Blog: JimmyNilsson.com/blog/Twitter: twitter.com/JimmyNilsson

Author of ”Applying Domain-Driven Design and Patterns” and ”.NET Enterprise Design”

Co-founder and CEO of factor10

Page 3: EF + DDD = true?

Relational database?

O/RM or ”manual”?

EF or NHibernate?

EF 3.5, how to prepare for 4?

DDD and TDD!

?

Page 4: EF + DDD = true?

Relational database?

O/RM or ”manual”?

EF or NHibernate?

EF 3.5, how to prepare for 4?

DDD and TDD!

:-)

Page 5: EF + DDD = true?

Why TDD?

TDD isn’t about testing......it’s about programming!

To write simpler, clearer and more robust and maintainable code!

Page 6: EF + DDD = true?

Why DDD?

Accidental complexity is bad

”Programming is understanding”(Kristen Nygaard)

”DDD == OO done right”

Context is king

Semantics over technology

...

Page 7: EF + DDD = true?

But also with TDD and DDD we most often need to persist dataIt’s just not the main focus...

Assume that we might use a relational database

EF?

EF3.5DB-first (generate metadata and classes)IPoco

EF4DB-first (generate metadata and classes)Model-first (”paint” metadata, generate DB and classes)Code-first (”generate” metadata in runtime, generate DB)

Page 8: EF + DDD = true?

Disclaimer

Not a review! No production experience... No analysis...

Page 9: EF + DDD = true?

Our story can begin...

Domain expert: Lotta

Who needs a new app...TimeReport!

Developer: Jimmy

Page 10: EF + DDD = true?

Time report

Page 11: EF + DDD = true?

”- Show me the code!”

Page 12: EF + DDD = true?

Recommendation

Frameworks come and go,

good design lasts! So...

Focus on DDD and TDD!

Page 13: EF + DDD = true?

References

[DDD] Eric Evans: Domain-Driven Design[ADDDP] Jimmy Nilsson: Applying Domain-Driven Design and Patterns


Recommended