diff options
| Commit | 536ff0677db7dd000393456b668da902b2d85021 (patch) | |
|---|---|---|
| Author | 2020-12-08 11:47:09 +0200 | |
| Committer | 2020-12-08 11:47:09 +0200 | |
| Files | a03c4869890e54f5bf74e0d2d48b771b0c503b19 /API/Database/DevHiveContext.cs | |
| DevHive-536ff0677db7dd000393456b668da902b2d85021.tar DevHive-536ff0677db7dd000393456b668da902b2d85021.tar.gz DevHive-536ff0677db7dd000393456b668da902b2d85021.zip | ||
| Parent | 0c79f396cad64042ae123b81d0bc412e2dddc924 (diff) | |
DbContext implemented
1 files changed, 18 insertions, 0 deletions
| -rw-r--r-- | API/Database/DevHiveContext.cs | 18 |
diff --git a/API/Database/DevHiveContext.cs b/API/Database/DevHiveContext.cs new file mode 100644 index 0000000..8623a11 --- /dev/null +++ b/API/Database/DevHiveContext.cs @@ -0,0 +1,18 @@ +using Microsoft.AspNetCore; +using Microsoft.EntityFrameworkCore; +using Models.Classes; +using Microsoft.AspNetCore.Identity.EntityFrameworkCore; +using Microsoft.AspNetCore.Identity; + +namespace Database +{ + public class DevHiveContext : IdentityDbContext<IdentityUser<int>, IdentityRole<int>, int> + { + public DevHiveContext(DbContextOptions options) + : base(options) { } + + + public DbSet<Technology> Technologies { get; set; } + public DbSet<Language> Languages { get; set; } + } +}
\ No newline at end of file |
