Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Data Store
The Entity Framework has no knowledge of the database
that stores the data
It connects and interacts with the database through a
provider that is usually declared in the configuration file
As in ADO.NET the providers are supplied by the dbms
vendors
Some supported dbmses:
SQLServer
Oracle
MySQL
db2
Getting Started
Database First
DB
DB
Design time
Code
Design time
Code First
DB
Model
Design time
Model First
Model
Design time
Code
Runtime
Model
Runtime
Code
10
11
12
13
Create a Context
using System.Data.Entity;
public class BloggingContext : DbContext {
public DbSet<Blog> Blogs { get; set; }
public DbSet<Post> Posts { get; set; }
}
14
15
Detailed Information
http://www.entityframeworktutorial.net/
16