forked from zzzprojects/System.Linq.Dynamic.Core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRentals.cs
More file actions
27 lines (22 loc) · 645 Bytes
/
Rentals.cs
File metadata and controls
27 lines (22 loc) · 645 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
using System;
namespace CodeFirst.DataAccess.Models;
public class Rentals
{
public int CopyId { get; set; }
public int ClientId { get; set; }
public DateTime? DateOfRental { get; set; }
public DateTime? DateOfReturn { get; set; }
// navigational properties
public virtual Clients Client { get; set; }
public virtual Copies Copy { get; set; }
public Rentals()
{
}
public Rentals(int clientId, int copyId, DateTime? dateOfRental, DateTime? dateOfReturn)
{
CopyId = copyId;
ClientId = clientId;
DateOfRental = dateOfRental;
DateOfReturn = dateOfReturn;
}
}