-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDBModel.cs
More file actions
60 lines (48 loc) · 1.25 KB
/
DBModel.cs
File metadata and controls
60 lines (48 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Net_Interview_Question_API
{
public class DBModel
{
[Key]
public string User { get; set; }
public string Question { get; set; }
public string Answer { get; set; }
public string QuestionTags { get; set; }
public string Votes { get; set; }
}
public class DBModelQuestion
{
public string User { get; set; }
[Key]
public string Question { get; set; }
public string QuestionTags { get; set; }
}
public class DBModelAnswer
{
public string Question { get; set; }
public string Answer { get; set; }
}
public class DBModelTags
{
[FromQuery]
public string QuestionTags { get; set; }
}
public class DBModelVoting
{
[Key]
public string Question { get; set; }
public string Answer { get; set; }
public string Votes { get; set; }
}
public class DBModelContext : DbContext
{
public DbSet<DBModel> DBModel { get; set; }
}
}