forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathD.cs
74 lines (62 loc) · 1.16 KB
/
D.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
using System;
namespace NHibernate.DomainModel
{
/// <summary>
/// POCO for D
/// </summary>
[Serializable]
public class D
{
#region Fields
private Int64 _id;
private Double _amount;
#endregion
#region Constructors
/// <summary>
/// Default constructor for class D
/// </summary>
public D()
{
// try to induce an infinite loop in the lazy-loading machinery
Amount = 100.0f;
Double a = Amount;
}
/// <summary>
/// Constructor for class D
/// </summary>
/// <param name="id">Initial id value</param>
/// <param name="amount">Initial amount value</param>
public D(Int64 id, Double amount)
{
_id = id;
_amount = amount;
}
/// <summary>
/// Minimal constructor for class D
/// </summary>
/// <param name="id">Initial id value</param>
public D(Int64 id)
{
_id = id;
}
#endregion
#region Properties
/// <summary>
/// Get/set for id
/// </summary>
public virtual Int64 Id
{
get { return _id; }
set { _id = value; }
}
/// <summary>
/// Get/set for Amount
/// </summary>
public virtual Double Amount
{
get { return _amount; }
set { _amount = value; }
}
#endregion
}
}