forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEmployee.cs
42 lines (37 loc) · 775 Bytes
/
Employee.cs
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
namespace NHibernate.Test.Join
{
public class Employee : Person
{
public Employee()
{
Meetings = new List<Meeting>();
}
private string _Title;
public virtual string Title
{
get { return _Title; }
set { _Title = value; }
}
private Employee _Manager;
public virtual Employee Manager
{
get { return _Manager; }
set { _Manager = value; }
}
private decimal _Salary;
public virtual decimal Salary
{
get { return _Salary; }
set { _Salary = value; }
}
public virtual IList<Meeting> Meetings { get; set; }
}
public class Meeting
{
public virtual int Id { get; set; }
public virtual Employee Employee { get; set; }
public virtual string Description { get; set; }
}
}