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.
- Host: GitHub
- URL: https://github.com/ashutoshkushawaha/postgresql_identity2.0_entityframework6
- Owner: ashutoshkushawaha
- Created: 2018-04-03T09:37:18.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-03T10:19:12.000Z (about 8 years ago)
- Last Synced: 2025-03-30T23:15:47.584Z (about 1 year ago)
- Topics: enityframework, identity, postgresql
- Language: C#
- Size: 398 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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