-
-
Notifications
You must be signed in to change notification settings - Fork 243
Expand file tree
/
Copy pathCopies.cs
More file actions
28 lines (22 loc) · 627 Bytes
/
Copies.cs
File metadata and controls
28 lines (22 loc) · 627 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
27
28
using System.Collections.Generic;
namespace CodeFirst.DataAccess.Models;
public class Copies
{
public int CopyId { get; set; }
public bool Available { get; set; }
public int MovieId { get; set; }
// navigational properties
// one copy has only one movie
public virtual Movies Movie { get; set; }
// to maintain many to many copies - rentals
public virtual ICollection<Rentals> Rentals { get; set; }
public Copies()
{
}
public Copies(int copyId, int movieId, bool available)
{
CopyId = copyId;
MovieId = movieId;
Available = available;
}
}