Entity Framework Core (EF Core)

Slides:



Advertisements
Similar presentations
Object Relational Mapping – ORM Entity Framework
Advertisements

1 C. Shahabi Application Programming for Relational Databases Cyrus Shahabi Computer Science Department University of Southern California
1 Design patterns Lecture 4. 2 Three Important skills Understanding OO methodology Mastering Java language constructs Recognizing common problems and.
05 | Data Access with Entity Framework Bruno Terkaly | Technical Evangelist Bret Stateham | Technical Evangelist.
Chapter 12 Database Connectivity with ASP.NET JavaScript, Third Edition.
Discover, Master, InfluenceSlide 1 SQL Server Compact Edition and the Entity Framework Rob Sanders Readify.
Chapter 1 Introduction Outstanding Features About This Book 1. A novel writing style is adopted to try to attract students’ or beginning programmers’ interesting.
Web & Cloud Development Jason Keicher - Microsoft.
 Introduction  What is LINQ  Syntax  How to Query  Example Program.
CSCI 6962: Server-side Design and Programming
Entity Framework Code First End to End
ASP.NET Programming with C# and SQL Server First Edition
Entity Framework, a quickstart Florin−Tudor Cristea, Microsoft Student Partner.
Intro to Entity Framework By Shahed Chowdhuri Don’t drown in database design during WakeUpAndCode.com.
NHibernate in Action Web Seminar at UMLChina By Pierre Henri Kuaté 2008/08/27
1 Hammad Khan. COURSE CONTENTS.NET Framework And C# SQL Server 2008 ADO.NET LINQ ASP.NET Dynamics Data ASP.NET MVC framework 2 Advance C# Concepts Windows.
Ronnie Saurenmann Principal Architect Microsoft Switzerland.
1 Copyright © 2004, Oracle. All rights reserved. Introduction.
SQL access and working with ST_Geometry Functions
Entity Framework Code First – Beyond the Basics Sergey Barskiy, Magenic Microsoft MVP – Data Platform Principal Consultant.
Course FAQ’s I do not have any knowledge on SQL concepts or Database Testing. Will this course helps me to get through all the concepts? What kind of.
Web Information Systems Modeling Luxembourg, June VisAVis: An Approach to an Intermediate Layer between Ontologies and Relational Database Contents.
All information's of PLINQO in this Document, I got it from: So, you could visit the link above to research.
Database Connectivity with ASP.NET. 2 Introduction Web pages commonly used to: –Gather information stored on a Web server database Most server-side scripting.
Entity Framework Code First – Beyond the Basics Sergey Barskiy, Magenic Microsoft MVP – Data Platform Magenic, Principal Consultant Level: Introductory.
Entity Framework 7 Who Are You & What Have You Done to my ORM?
Entity Framework 7: What’s New? Ricardo Peres Technical Evangelist at Simplifydigital. Microsoft
Entity Framework Database Connection with ASP Notes from started/getting-started-with-ef-using-mvc/creating-an-
Data Access Methodologies: When to choose what (ADO.NET, Entity Framework, WCF Data Services) Wriju Ghosh Lead Partner Consultant, Microsoft.
1 Copyright © 2008, Oracle. All rights reserved. Repository Basics.
Data in Windows 10 UWP Andy Wigley XML, JSON, SQLite or EF Core ?
Introduction to Database Programming with Python Gary Stewart
ASP.NET Core* Shahed Chowdhuri Sr. Technical WakeUpAndCode.com A Quick Overview of ASP.NET Core * aka ASP.NET 5 before.
Chapter 12 Introducing Databases. Objectives What a database is and which databases are typically used with ASP.NET pages What SQL is, how it looks, and.
Eric Flamm Flamm Consulting, Inc.
Xamarin Development with
Top 10 Entity Framework Features Every Developer Should Know
Introduction ITEC 420.
DevOps with ASP.NET Core and Entity Framework Core
Introduction to Entity framework
Introduction to .NET Florin Olariu
Introduction to Entity Framework
5/15/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
What’s new in Entity Framework Core 2.0
LINQ for SQL SQL Saturday May 2009 David Fekke.
Data centric apps for web, desktop and mobile with EF5
A very brief introduction
LiNQ SQL Saturday David Fekke.
 .NET CORE
Overview of Data Access
Did your feature got in, out or planned?
JDBC.
Entity Framework By: Casey Griffin.
A Tour of EF Core’s Most Interesting & Important Features
Entity Framework Core for Enterprise Applications
Learn. Imagine. Build. .NET Conf
ADO.NET Entity Framework
Overview of Data Access
ADO.NEXT Advances in Data Access for 2008
ISC440: Web Programming 2 Server-side Scripting PHP 3
Microsoft Build /15/2018 6:28 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
An Introduction to Entity Framework
Entity Framework Core.
Microsoft Connect /1/2018 2:36 AM
12/3/2018 7:56 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
What’s new in ASP.NET Core and Entity Framework 2.2 (Preview 3)
Entity Framework Core for Enterprise Applications
…and web frameworks in general
Implementing Entity Framework with MVC Jump Start
Entity Framework & LINQ (Language Integrated Query)
Presentation transcript:

Entity Framework Core (EF Core) Marko Šarić marko.saric@comminus.hr Copyright Comminus d.o.o. | Buzinski prilaz 10 | 10000 Zagreb | www.comminus.hr

Copyright Comminus d.o.o. Content What is EF CORE EF Core Database Support Entity Framework Core vs Entity Framework 6.x The Model (Database Context) Querying data Saving data Stored procedures 09.12.2016. Copyright Comminus d.o.o.

Copyright Comminus d.o.o. How to use? .NET Core has reached the 1.1 release. It's cross-platform, open source, and wicked fast. Plus you can code on your Mac. 09.12.2016. Copyright Comminus d.o.o.

Copyright Comminus d.o.o. What is EF Core Object-relational mapper (O/RM) that enables .NET developers to work with a database using .NET objects. It eliminates the need for most of the data-access code that developers usually need to write. Lightweight, extensible, and cross-platform version of Entity Framework. Built over a completely new set of core components. EF Core doesn't automatically inherit all the features from EF6.x. Some of these features will show up in future releases (such as lazy loading and connection resiliency) Less commonly used features will not be implemented in EF Core. 09.12.2016. Copyright Comminus d.o.o.

Copyright Comminus d.o.o. Microsoft SQL Server (including SQL Azure) Also support for SQL Server Compact Edition Memory-Optimized Table support was introduced in EF Core 1.1.0. SQLite PostgreSQL MySQL Built-in in-memory database (designed for testing purposes only) The Oracle .NET team is evaluating EF Core support, but have not announced any timing Database providers are installed through NuGet PM> Install-Package Microsoft.EntityFrameworkCore.SqlServer PM> Install-Package Npgsql.EntityFrameworkCore.PostgreSQL 09.12.2016. Copyright Comminus d.o.o.

Copyright Comminus d.o.o. Features not in EF Core Spatial data types such as SQL Server's geography & geometry Graphical visualisation of model Loading related data: Lazy Stored procedure mapping (stored procedures are supported) 09.12.2016. Copyright Comminus d.o.o.

The Model A model is made up of entity classes and a derived context that represents a session with the database, allowing you to query and save data.

Querying Instances of your entity classes are retrieved from the database using Language Integrated Query (LINQ)

Querying Loading Related Data • Eager loading: related data is loaded from the database as part of the initial query • Explicit loading: related data is explicitly loaded from the database at a later time

Saving data Data is created, deleted, and modified in the database using instances of your entity classes

Copyright Comminus d.o.o. Stored Procedures Use FromSql method which executes RAW SQL queries. Limitations (and misconceptions): SQL queries can only be used to return entity types that are part of your model. Therefore, it cannot contain related data The SQL query must return data for all the properties of the entity. So basically your SQL query should be Select * from {tableName} The column names in the result set must match the column names that properties are mapped to For INSERT, UPDATE, DELETE queries: ExecuteSqlCommand. It returns integer value which indicates the count of affected rows ExecuteSqlCommand should be used on context.Database 09.12.2016. Copyright Comminus d.o.o.

Copyright Comminus d.o.o. References Official Technical Documentation https://docs.microsoft.com/en-us/ef/ 101 LINQ Samples https://code.msdn.microsoft.com/101-LINQ-Samples-3fb9811b EF Core 1.0: First Look https://app.pluralsight.com/library/courses/play-by-play-ef-core-1-0-first-look-julie-lerman LINQ Fundamentals with C# 6.0 https://app.pluralsight.com/library/courses/linq-fundamentals-csharp-6 Building a Web App with ASP.NET Core, MVC 6, EF Core, and Angular https://app.pluralsight.com/library/courses/aspdotnetcore-efcore-bootstrap-angular-web- app/ 09.12.2016. Copyright Comminus d.o.o.

Copyright Comminus d.o.o. 23.11.2016. Copyright Comminus d.o.o.

Copyright Comminus d.o.o. Hvala na pozornosti 23.11.2016. Copyright Comminus d.o.o.