Skip to content

aladin002dz/Carly_AspProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Carly_AspProject ( A Complete Real world ASP MVC WebApp)

Work with EntityFramework code first:

in package manager console:

> enable-migrations

add DbSet in IdentityModels.cs: public DbSet BankAccounts { get; set; }

> add-migration  [migration-name] #eg: addBankAccounts
> update-database

in Controller file:

private ApplicationDbContext _context = new ApplicationDbContext();  

eg: adding record to table

BankAccount bankAccount = new BankAccount();  
...  
_context.BankAccounts.Add(bankAccount);  
_context.SaveChanges();  

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published