+ All Categories
Home > Documents > Entity Framework Query Generation – LINQ-syntax – Auto-compilation Database Access – Single...

Entity Framework Query Generation – LINQ-syntax – Auto-compilation Database Access – Single...

Date post: 04-Jan-2016
Category:
Upload: gervais-ball
View: 227 times
Download: 0 times
Share this document with a friend
Popular Tags:
9
#justdotnetthings Retooling a Legacy App
Transcript
Page 1: Entity Framework Query Generation – LINQ-syntax – Auto-compilation Database Access – Single context during page interaction – —————— Less code – ————————

#justdotnetthings

Retooling a Legacy App

Page 2: Entity Framework Query Generation – LINQ-syntax – Auto-compilation Database Access – Single context during page interaction – —————— Less code – ————————
Page 3: Entity Framework Query Generation – LINQ-syntax – Auto-compilation Database Access – Single context during page interaction – —————— Less code – ————————
Page 4: Entity Framework Query Generation – LINQ-syntax – Auto-compilation Database Access – Single context during page interaction – —————— Less code – ————————

Entity Framework

• Query Generation– LINQ-syntax– Auto-compilation

• Database Access– Single context during page interaction

– —————— Less code– ———————— Better performance

– —————————————————

Some Page Some Page

Page 5: Entity Framework Query Generation – LINQ-syntax – Auto-compilation Database Access – Single context during page interaction – —————— Less code – ————————

What We Have Today

Some Page

-Factory

-Manager

-DAL

160+1

160+1

+1

-Collection160+1

• What if we need different data?

• What if we add a new database table?

-ServiceFaçade

ObjectSettings

Page 6: Entity Framework Query Generation – LINQ-syntax – Auto-compilation Database Access – Single context during page interaction – —————— Less code – ————————

What We’re Going For

-DbContext

Entity

Some Page

Page 7: Entity Framework Query Generation – LINQ-syntax – Auto-compilation Database Access – Single context during page interaction – —————— Less code – ————————

What We Have Today

Some Page

-Factory

-Manager

-DAL

160+1

160+1

+1

-Collection160+1

• What if we need different data?

• What if we add a new database table?

-ServiceFaçade

Page 8: Entity Framework Query Generation – LINQ-syntax – Auto-compilation Database Access – Single context during page interaction – —————— Less code – ————————

What We’re Going For

Deletable -DbContext

Creatable

SearchByDate

Entity

Some Page

• What if we need different data?

• What if we add a new database table?

SearchByName

+1

Page 9: Entity Framework Query Generation – LINQ-syntax – Auto-compilation Database Access – Single context during page interaction – —————— Less code – ————————

Aftermath

• Doesn’t this break literally everything?– Let’s do a demo

• What we’ve learned– You can’t spell “Hackathon” without “Hack”– Implementing a new framework isn’t a three day task

• But it can be done piece-by-piece


Recommended