forked from Arxcis/OrdBase
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTranslation.cs
More file actions
46 lines (36 loc) · 1.26 KB
/
Translation.cs
File metadata and controls
46 lines (36 loc) · 1.26 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
using Microsoft.AspNetCore.Mvc;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace OrdBaseCore.Models
{
public class Translation
{
[ForeignKey("Client")]
public string ClientKey { get; set; }
protected virtual Client Client { get; set; }
[ForeignKey("Language")]
public string LanguageKey { get; set; }
protected virtual Language Language { get; set; }
[ForeignKey("Container")]
public string ContainerKey { get; set; }
protected virtual Container Container { get; set; }
[StringLength(127)]
public string Key { get; set; }
[StringLength(255)]
[Required]
public string Text { get; set; }
[Required]
public bool IsComplete { get; set; }
}
public class TranslationQuery
{
[FromQuery(Name="clientKey")]
public string ClientKey { get; set; }
[FromQuery(Name="languageKey")]
public string LanguageKey { get; set; }
[FromQuery(Name="containerKey")]
public string ContainerKey { get; set; }
[FromQuery(Name="translationKey")]
public string TranslationKey { get; set; }
}
}