uneta 17.04.15 dekhtiar - entity framework 7 and co

of 20 /20
Entity Framework 7 and co. Speaker: Dekhtiar Oleksandr .NET developer, DCT

Author: uneta

Post on 19-Jul-2015

169 views

Category:

Education


1 download

Embed Size (px)

TRANSCRIPT

Entity Framework 7 and co.

Entity Framework 7 and co.Speaker: Dekhtiar Oleksandr.NET developer, DCT . : ORMEntity Framework Entity Framework EF 7Demo. EF ORM private static void ReadOrderData(string connectionString) { string queryString="SELECT OrderID, CustomerID FROM dbo.Orders;"; using (SqlConnection connection =new SqlConnection) {var command=new SqlCommand(queryString,connection);connection.Open();SqlDataReader reader = command.ExecuteReader();try{ while (reader.Read()) { Console.WriteLine(String.Format("{0}, {1}", reader[0], reader[1])); }}finally{ reader.Close();} } } - ORMORM(Object Relational Mapping) - - - . .

ORM .NET Entity Framework, Nhibernate,LightSpeed ()Entity FrameworkEntity Framework Microsoft (entities). . .. Entity Framework .

C Entity Framework:Code firstModel firstDatabase first EF

EFEF 1. , Database-First . EF Designer and Tools Visual Studio 2008 (with SP1)

EF 4. 4- . Code-first , POCO entity generator( ), T4 templates, .

EF5. Enum, , ( geography), .

EF6. , Code First Mapping Insert/Update/Delete .Entity Framework 7. EF6 . EF7- . 7- EF API, ?

EF7 EF7, .

2 EF7:MobilePlatforms;NoSQL. RAM/CPU , RAM 2 512 . . EF EF 6 2- :EntityFramework EntityFramework.SqlServer. 10

- DetectChanges

DBFirst Model First. Code First

DatabaseInitializer

DetectChanges

, DetectChanges, .

AutoDetectChanges=false , .

7- AutoDetectChanges , .. DetectChanges , EF7 DbContext.SaveChanges, DbSet.Local, DbContext.Entry, DbChangeTracker.Entries. EDMX.

DatabaseInitializer, good bye . - . ( ), NoSQLNoSQL(Not only SQL) , , , , SQL.

NoSQL -, BSON

EF7 Redis(REmote DIctionary Server), Azure Table Storage.

, StackExchangeEF Entity Framework ASP.NET, WPF, Windows Forms . Windows Phone.

Windows Phone WinRT desktop SQLite- . , .NET .

Microsoft Entity Framework , .. .Demo , Entity Framework 7 .

: Summary ORM, NoSQL ORM- Entity Framework EF 7 : DB First Model First DetectChanges SQLite NoSQL

!