Skip to content

DKirikov/EntityFrameworkExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements: VS 2013, PostgreSQL. PgAdmin3 and above allows to view BD and tables.

Description:
This example shows how to work with EntityFramework.
Creates connection to Postgres.
Creates tables 'persons', 'teachers', 'students', 'phones'.
Shows 'many to many' scheme between students and teachers.
Queries use Linq.

Details:
EntityFramework, Npgsql, Npgsql for Entity Framework 6 were added (through Nuget) to the project.
defaultConnectionFactory in App.config was changed from System.Data.Entity.Infrastructure.SqlConnectionFactory
to Npgsql.NpgsqlConnectionFactory.
DbProviderFactories section was added. It contains Npgsql Data Provider.

About

This example shows how to work with EntityFramework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages