-
Notifications
You must be signed in to change notification settings - Fork 1
/
Client.cs
40 lines (32 loc) · 1.08 KB
/
Client.cs
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
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.AspNetCore.Mvc;
// @doc configure many to many http://www.entityframeworktutorial.net/code-first/configure-many-to-many-relationship-in-code-first.aspx
namespace OrdBaseCore.Models
{
public class Client
{
[Key]
[StringLength(127)]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public string Key { get; set; }
[StringLength(127)]
public string ApiKey { get; set; }
[StringLength(255)]
public string WebpageUrl {get; set; }
[StringLength(255)]
public string ThumbnailUrl { get; set; }
//
// @brief Setting up a many to many relationship between the clients and
// the containers + languages.
public virtual List<ClientContainer> Containers { get; set; }
public virtual List<ClientLanguage> Languages { get; set;}
}
public class ClientQuery
{
[FromQuery(Name="clientKey")]
public string ClientKey { get; set; }
}
}