-
-
Notifications
You must be signed in to change notification settings - Fork 121
Expand file tree
/
Copy pathFooCompositeKey.cs
More file actions
25 lines (20 loc) · 741 Bytes
/
FooCompositeKey.cs
File metadata and controls
25 lines (20 loc) · 741 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
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace SQLite.CodeFirst.NetCore.Console.Entity
{
/// <summary>
/// See https://github.com/msallin/SQLiteCodeFirst/issues/109
/// </summary>
public class FooCompositeKey
{
[Key, Column(Order = 1)]
public int Id { get; set; }
[Key, Column(Order = 2), StringLength(20)]
public string Version { get; set; }
[StringLength(255)]
public string Name { get; set; }
public virtual ICollection<FooRelationshipA> FooeyACollection { get; set; }
public virtual ICollection<FooRelationshipB> FooeyBCollection { get; set; }
}
}