aboutsummaryrefslogtreecommitdiff
path: root/API/Database/DevHiveContext.cs
diff options
context:
space:
mode:
Diffstat (limited to 'API/Database/DevHiveContext.cs')
-rw-r--r--API/Database/DevHiveContext.cs18
1 files changed, 18 insertions, 0 deletions
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