forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBasicObject.cs
94 lines (80 loc) · 1.41 KB
/
BasicObject.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
using System;
namespace NHibernate.DomainModel.NHSpecific
{
/// <summary>
/// Used to test how NHibernate handles mappings for type="Object"
/// and type="Any"
/// </summary>
/// <remarks>
/// This class is used in two hbm.xml files.
/// </remarks>
public class BasicObject
{
private int _id;
private string _name;
private object _any;
private object _anyProxy;
public int Id
{
get { return _id; }
set { _id = value; }
}
public string Name
{
get { return _name; }
set { _name = value; }
}
public object Any
{
get { return _any; }
set { _any = value; }
}
public object AnyWithProxy
{
get { return _anyProxy; }
set { _anyProxy = value; }
}
}
/// <summary>
/// Summary description for BasicObject.
/// </summary>
[Serializable]
public class BasicObjectRef
{
private int _id;
private string _name;
public int Id
{
get { return _id; }
set { _id = value; }
}
public string Name
{
get { return _name; }
set { _name = value; }
}
}
public interface IBasicObjectProxy
{
int Id { get; set; }
string Name { get; set; }
}
[Serializable]
public class BasicObjectProxy : IBasicObjectProxy
{
private int _id;
private string _name;
#region IBasicObjectProxy Members
public int Id
{
get { return _id; }
set { _id = value; }
}
public string Name
{
get { return _name; }
set { _name = value; }
}
#endregion
}
}