/
Quote.cs
32 lines (30 loc) · 1.01 KB
/
Quote.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
using DevExpress.Xpo;
namespace ConsoleApplication1 {
public class Quote : XPObject {
public Quote()
: base() {
// This constructor is used when an object is loaded from a persistent storage.
// Do not place any code here.
}
public Quote(Session session)
: base(session) {
// This constructor is used when an object is loaded from a persistent storage.
// Do not place any code here.
}
public override void AfterConstruction() {
base.AfterConstruction();
// Place here your initialization code.
}
private string _name;
public string Name {
get { return _name; }
set { SetPropertyValue("Name", ref _name, value); }
}
[Association("Quote-QuoteItems"), Aggregated]
public XPCollection<QuoteItem> QuoteItems {
get {
return GetCollection<QuoteItem>("QuoteItems");
}
}
}
}