Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Datengetriebene Web-APIs mit Entity Framework,...
Search
Manfred Steyer
PRO
November 26, 2016
Programming
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Datengetriebene Web-APIs mit Entity Framework, API Summit 2016
Manfred Steyer
PRO
November 26, 2016
More Decks by Manfred Steyer
See All by Manfred Steyer
Generative UI & AI-Assistants for Your Angular Solutions
manfredsteyer
PRO
1
380
Generative UI & AI-Assistants for Your Angular Solutions
manfredsteyer
PRO
0
170
Nostalgia Meets Technology: Super Mario with TypeScript
manfredsteyer
PRO
0
250
Signal Forms: Details & Live Coding @enterJS 2026 in Mannheim
manfredsteyer
PRO
0
270
Strategic Design in the Frontend: Moduliths & Micro Frontends @DDDEurope
manfredsteyer
PRO
0
190
Agentic UI
manfredsteyer
PRO
0
280
Signal Forms: Beyond the Basics @ngBaguette 2026 in Paris
manfredsteyer
PRO
0
330
Agentic UI beyond Chats Architecture Patterns & Open Standards @ngMunich 05/2026
manfredsteyer
PRO
0
270
Agentic AI in the Frontend: Architectures with Open Standards @iJS London 2026
manfredsteyer
PRO
0
200
Other Decks in Programming
See All in Programming
【デモ】Kiroで体験する仕様駆動開発|設計からコーディングまでAIと進める開発フロー
cmkudo
0
130
komatsuna「分散システムにおけるバグ分析手法」
komatsunaqa
0
270
変わらないものが、変わるものを決める — 意図駆動開発 × イベントソーシング × イミュータブル | What Doesn't Change Decides What Can — IDD × Event Sourcing × Immutability
tomohisa
0
1.8k
自動化したのに回らないテスト運用の壁ーAI時代の品質責任と生産性
mfunaki
1
140
今さら聞けない .NET CLI
htkym
0
200
Foundation Models frameworkで画像分析
ryodeveloper
1
630
ソフトウェア設計に溶けるインフラ ― AWS CDK のインフラ認識論
konokenj
3
810
AIが無かった頃の素敵な出会いの話
codmoninc
1
470
FDEが実現するAI駆動経営の現在地
gonta
2
290
PHP に部分適用が来るぞ!……ところで何それ?おいしいの? #phpcon / phpcon-2026
shogogg
0
700
型も通る、synthも通る、それでも危ない 〜AIのCDKの権限とコストを機械で検証する〜 / It Passes Type Checks, It Passes Synth Checks, but It’s Still Risky — Automatically Verifying Permissions and Costs in AI’s CDK —
seike460
PRO
1
570
yield再入門 #phpcon
o0h
PRO
0
1.2k
Featured
See All Featured
Ruling the World: When Life Gets Gamed
codingconduct
0
300
Optimising Largest Contentful Paint
csswizardry
37
3.9k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
3
450
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
KATA
mclloyd
PRO
35
15k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Marketing to machines
jonoalderson
1
5.7k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Exploring anti-patterns in Rails
aemeredith
3
470
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
650
Visualization
eitanlees
152
17k
Transcript
Datengetriebene Web-APIs mit Entity Framework Manfred Steyer twitter.com/ManfredSteyer ManfredSteyer
Über mich … Manfred Steyer SOFTWAREarchitekt.at Trainer & Consultant GDE
& MVP EF & ASP.NET & Angular Page 2 ManfredSteyer
Ziel Möglichkeiten für datengetriebene Web-APIs mit EF und ASP.NET Web
API anhand eines Beispiels aufzeigen Folie 3
Nicht-Ziele Einen Client entwickeln Einführung in Entity Framework Einführung in
Web API Anderen Sessions Konkurrenz machen Folie 4
Didaktik Fallbeispiel Live-Coding Folie 5
Inhalt Warum datenbasierte APIs? Überblick: Web API und EF Lazy
Loading und Web APIs Eager Loading und Serialisierungsoptionen Change Tracking in verteilten Systemen Abfragen via HTTP mit OData Folie 6
Warum datenbasierte APIs?
Services sind das Rückgrat einer Anwendung Folie 8
HTTP-Services, Web APIs GET /flights/Graz-Frankfurt?date=2016-12-24 HTTP/1.1 Host: www.softwarearchitekt.at Accept: text/json
HTTP/1.1 200 OK Content-Type: text/json [ {"Time": "1700", "FlightNumer":"LH4711", ...}, {"Time": "1800", "FlightNumer":"LH4712", ...}, … ]
FALLBEISPIEL Page 10
Aufbau Folie 11
DEMO Page 12
ODATA Page 14
Was ist OData? Offener Standard Definiert wie Daten über HTTP
abgefragt werden können ?$filter=Sterne ge 3&$orderby=Bezeichnung desc Definiert wie Daten über HTTP bearbeitet werden können Folie 15
NuGet-Package Microsoft.AspNet.Odata Folie 16
OData-Abfragen aktivieren Folie 17 [EnableQuery] public IQueryable<Hotel> Get() { […]
}
DEMO Page 18
Zusammenfassung Lazy Loading deaktivieren Serializer auf zyklische Verweise vorbereiten (Eager
Loading) Self Tracking Entities OData für flexible Abfragen Folie 26
[mail]
[email protected]
[web] SOFTWAREarchitekt.at [twitter] ManfredSteyer Contact