aboutsummaryrefslogtreecommitdiff
path: root/API/Database
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2020-12-10 11:28:23 +0200
committertranstrike <transtrike@gmail.com>2020-12-10 11:28:23 +0200
commit4e4ad8b4ba9938cc3f32bce3c606d73560267604 (patch)
tree811559069901902256e8cf96fbcb850548367069 /API/Database
parentcec7ddcbfaf46443b14bc0bc119cc8b0ff5579b0 (diff)
downloadDevHive-4e4ad8b4ba9938cc3f32bce3c606d73560267604.tar
DevHive-4e4ad8b4ba9938cc3f32bce3c606d73560267604.tar.gz
DevHive-4e4ad8b4ba9938cc3f32bce3c606d73560267604.zip
Testig API with HTTP Post in User
Diffstat (limited to 'API/Database')
-rw-r--r--API/Database/DevHiveContext.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/API/Database/DevHiveContext.cs b/API/Database/DevHiveContext.cs
index 6db137a..c20e9eb 100644
--- a/API/Database/DevHiveContext.cs
+++ b/API/Database/DevHiveContext.cs
@@ -19,6 +19,12 @@ namespace API.Database
builder.Entity<User>()
.HasKey(x => x.Id);
+ builder.Entity<Language>()
+ .HasKey(x => x.Id);
+
+ builder.Entity<Technology>()
+ .HasKey(x => x.Id);
+
base.OnModelCreating(builder);
}
}