Entity framework in WPF 2 ORM Technologies What is ORM? What does ORM suppose to do? Object-Relational Mapping (ORM) is a programming technique for automatic mapping data and schema - Creating object model by DB schema (DB first model) ORM creates a “virtual object database” - Creating schema by object model (Code first model) - Querying data by object-oriented API (E.g LinQ queries) - Data manipulation operation (CRUD) More info on how to use this template at www.slidescarnival.com/help-use-presentation-template This template is free to use under Creative Commons Attribution license. You can keep the Credits slide or mention SlidesCarnival and other resources used in a slide footer. 3 Entity framework What is Entity Framework? EF Features Entity Framework (EF) is the standard ORM framework for .NET. It provides a infrastructure for managing SQL-based database date as .NET classes and objects - Maps tables, views, stored procedures and function as .NET objects - Provides LinQ-based data queries - Data manipulation operation (CRUD) - Tracks changes to in-memory objects 4 Entity framework Ways to use EF - DB-First - Code-First - Model-First (Rarely using) 5 Using database first Setup libary in NuGet Using to generate class - Microsoft.EFC.SqlServer Go developer powershell and run this command: Microfsoft.EFC.Tools Dotnet ef dbcontext scaffold “Server=server_name;Database=db_name;Trusted_Connection= True;Microsoft.EntityFrameworkCore.SqlServer –Ouput Models” Microsoft.EFC.Tools.Design (*) EFC: EntityFrameworkCore 6 EF components The DbContext class Association • Holding the database connection and the entity classes • An association is primary key/ foreign key realationship between two entity classes • • Provides LinQ-based data access • Allows navigator from one entity for another Implements identity tracking, change tracking, and API for CRUD operations Concurrency control Entity classes • Holding entities (object with their attributes and relations) • Each db table is typically mapped to a single C# entity class • • Using optimistic concurrency control Automatic concurrency conflict detection Mapping data (*) Mapping data 7 8 BIG CONCEPT Bring the attention of your audience over a key concept using icons or illustrations 9 IN TWO OR THREE COLUMNS Yellow Blue Red Is the color of gold, butter and ripe lemons. In the spectrum of visible light, yellow is found between green and orange. Is the colour of the clear sky and the deep sea. It is located between violet and green on the optical spectrum. Is the color of blood, and because of this it has historically been associated with sacrifice, danger and courage. 10 A PICTURE IS WORTH A THOUSAND WORDS A complex idea can be conveyed with just a single still image, namely making it possible to absorb large amounts of data quickly. 11 Want big impact? USE BIG IMAGE. 12 USE CHARTS TO EXPLAIN YOUR IDEAS White Gray Black 13 AND TABLES TO COMPARE DATA A B C Yellow 10 20 7 Blue 30 15 10 5 24 16 Orange 14 MAPS Our Office 15 89,526,124 Whoa! That’s a big number, aren’t you proud? 16 89,526,124$ That’s a lot of money 185,244 USERS And a lot of users 100% Total success! 17 OUR PROCESS IS EASY first second last 18 LET’S REVIEW SOME CONCEPTS Yellow Blue Red Is the color of gold, butter and ripe lemons. In the spectrum of visible light, yellow is found between green and orange. Is the colour of the clear sky and the deep sea. It is located between violet and green on the optical spectrum. Is the color of blood, and because of this it has historically been associated with sacrifice, danger and courage. Yellow Blue Red Is the color of gold, butter and ripe lemons. In the spectrum of visible light, yellow is found between green and orange. Is the colour of the clear sky and the deep sea. It is located between violet and green on the optical spectrum. Is the color of blood, and because of this it has historically been associated with sacrifice, danger and courage. 19 4000 3000 2000 1000 0 You can insert graphs from Excel or Google Sheets 20 MOBILE PROJECT Show and explain your web, app or software projects using these gadget templates. 21 TABLET PROJECT Show and explain your web, app or software projects using these gadget templates. 22 DESKTOP PROJECT Show and explain your web, app or software projects using these gadget templates. 23 THANKS! Any questions? You can find me at » @username » user@mail.me 24 CREDITS Special thanks to all the people who made and released these awesome resources for free: » Presentation template by SlidesCarnival » Photographs by Unsplash 25 PRESENTATION DESIGN This presentation uses the following typographies: » Titles: Oswald » Body copy: Roboto Condensed Download for free at: https://www.fontsquirrel.com/fonts/oswald https://www.fontsquirrel.com/fonts/roboto You don’t need to keep this slide in your presentation. It’s only here to serve you as a design guide if you need to create new slides or download the fonts to edit the presentation in PowerPoint® 2. EXTRA RESOURCES For Business Plans, Marketing Plans, Project Proposals, Lessons, etc 27 TIMELINE Blue is the colour of the clear sky and the deep sea Red is the colour of danger and courage Black is the color of ebony and of outer space Yellow is the color of gold, butter and ripe lemons White is the color of milk and fresh snow Blue is the colour of the clear sky and the deep sea JAN MAR MAY JUL SEP NOV FEB Yellow is the color of gold, butter and ripe lemons APR White is the color of milk and fresh snow JUN Blue is the colour of the clear sky and the deep sea AUG Red is the colour of danger and courage OCT Black is the color of ebony and of outer space DEC Yellow is the color of gold, butter and ripe lemons 28 ROADMAP Blue is the colour of the clear sky and the deep sea Red is the colour of danger and courage 1 Black is the color of ebony and of outer space 3 5 2 4 6 Yellow is the color of gold, butter and ripe lemons White is the color of milk and fresh snow Blue is the colour of the clear sky and the deep sea 29 GANTT CHART Week 1 1 2 3 4 Week 2 5 6 7 8 9 10 11 Task 1 Task 2 ◆ Task 3 Task 4 Task 5 Task 6 Task 7 Task 8 ◆ ◆ 12 13 14 30 SWOT ANALYSIS STRENGTHS WEAKNESSES Blue is the colour of the clear sky and the deep sea Yellow is the color of gold, butter and ripe lemons Black is the color of ebony and of outer space White is the color of milk and fresh snow OPPORTUNITIES THREATS 31 BUSINESS MODEL CANVAS Key Partners Key Activities Value Propositions Customer Relationships Customer Segments Insert your content Insert your content Insert your content Insert your content Insert your content Key Resources Channels Insert your content Insert your content Cost Structure Revenue Streams Insert your content Insert your content 32 FUNNEL AWARENESS Insert your content DISCOVERY Insert your content EVALUATION Insert your content INTENT Insert your content PURCHASE Insert your content LOYALTY Insert your content 33 TEAM PRESENTATION Imani Jackson Marcos Galán Ixchel Valdía JOB TITLE JOB TITLE JOB TITLE Nils Årud JOB TITLE Blue is the colour of the clear sky and the deep sea Blue is the colour of the clear sky and the deep sea Blue is the colour of the clear sky and the deep sea Blue is the colour of the clear sky and the deep sea 34 COMPETITOR MATRIX HIGH VALUE 2 Competitor Compet itor Our company Competitor LOW VALUE 1 HIGH VALUE 1 Competitor Competitor Competitor LOW VALUE 2 35 WEEKLY PLANNER SUNDAY MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY 9:00 - 9:45 Task Task Task Task Task Task Task 10:00 - 10:45 Task Task Task Task Task Task Task 11:00 - 11:45 Task Task Task Task Task Task Task 12:00 - 13:15 ✔ Free time ✔ Free time ✔ Free time ✔ Free time ✔ Free time ✔ Free time ✔ Free time 13:30 - 14:15 Task Task Task Task Task Task Task 14:30 - 15:15 Task Task Task Task Task Task Task 15:30 - 16:15 Task Task Task Task Task Task Task 36 SlidesCarnival icons are editable shapes. This means that you can: ● Resize them without losing quality. ● Change fill color and opacity. ● Change line color, width and style. Isn’t that nice? :) Examples: Diagrams and infographics 37 38 You can also use any emoji as an icon! And of course it resizes without losing quality. How? Follow Google instructions https://twitter.com/googledocs/status/730087240156643328 ✋👆👉👍👤👦👧👨👩👪💃🏃💑❤😂 😉😋😒😭👶😸🐟🍒🍔💣📌📖🔨🎃🎈 🎨🏈🏰🌏🔌🔑 and many more... 39 Free templates for all your presentation needs For PowerPoint and Google Slides 100% free for personal or commercial use Ready to use, professional and customizable Blow your audience away with attractive visuals