An open API service indexing awesome lists of open source software.

https://github.com/ashutoshkushawaha/postgresql_identity2.0_entityframework6

Asp.net mvc 5 with implemention of Identity 2.0 PostGreSQL and Entityframwork 6.
https://github.com/ashutoshkushawaha/postgresql_identity2.0_entityframework6

enityframework identity postgresql

Last synced: about 2 months ago
JSON representation

Asp.net mvc 5 with implemention of Identity 2.0 PostGreSQL and Entityframwork 6.

Awesome Lists containing this project

README

          

# PostGreSql_Identity2.0_EntityFramework6
Asp.net mvc 5 with implemention of Identity 2.0 PostGreSQL and Entityframwork 6.

postgresql setup in mvc project

1.in webconfig add this













2. EntityFramework6.Npgsql PostgreSQL provider for Entity Framework. install it from nuget.
3. Npgsql Npgsql is the open source .NET data provider for PostgreSQL. install it from nuget.

4. Asp.identity 2.0 in postgresql

public class SampleDbContext: IdentityDbContext
{
public SampleDbContext() : base("Conn")
{
Database.SetInitializer(null);
}
public virtual DbSet SYS_USER { get; set; }
public virtual DbSet Company { get; set; }
public static SampleDbContext Create()
{
return new SampleDbContext();
}
}

5. enable-migration to add migration folder
6. add-migration "meaningfull name" to add migration
7. update-database -verbose