forked from msallin/SQLiteCodeFirst
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStadion.cs
More file actions
26 lines (22 loc) · 755 Bytes
/
Copy pathStadion.cs
File metadata and controls
26 lines (22 loc) · 755 Bytes
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
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace SQLite.CodeFirst.Console.Entity
{
public class Stadion
{
[Key]
[Column(Order = 1)]
[Index("IX_Stadion_Main", Order = 2, IsUnique = true)] // Test for combined, named index
public string Name { get; set; }
[Key]
[Column(Order = 2)]
[Index("IX_Stadion_Main", Order = 1, IsUnique = true)] // Test for combined, named index
public string Street { get; set; }
[Key]
[Column(Order = 3)]
public string City { get; set; }
[Column(Order = 4)]
[Index("ReservedKeyWordTest", IsUnique = true)]
public int Order { get; set; }
}
}