forked from zzzprojects/System.Linq.Dynamic.Core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathActors.cs
More file actions
28 lines (23 loc) · 688 Bytes
/
Actors.cs
File metadata and controls
28 lines (23 loc) · 688 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;
using System.Collections.Generic;
namespace CodeFirst.DataAccess.Models;
public class Actors
{
public int ActorId { get; set; }
public string Firstname { get; set; }
public string Lastname { get; set; }
public DateTime? Birthday { get; set; }
public Actors()
{
}
public Actors(int actorId, string firstname, string lastname, DateTime? birthday)
{
ActorId = actorId;
Firstname = firstname;
Lastname = lastname;
Birthday = birthday;
}
// navigational properties
// this is composite key to get many to many movies - actors
public virtual ICollection<Starring> Starring { get; set; }
}