Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Web;
|
---|
5 |
|
---|
6 | namespace HLWebOKBQueryPlugin.OKBQueryService
|
---|
7 | {
|
---|
8 | /// <summary>
|
---|
9 | /// Extend the Service class Filter with an
|
---|
10 | /// unique id.
|
---|
11 | /// </summary>
|
---|
12 | public partial class Filter
|
---|
13 | {
|
---|
14 |
|
---|
15 | private Guid? _id = null;
|
---|
16 |
|
---|
17 | public Guid Id
|
---|
18 | {
|
---|
19 | get
|
---|
20 | {
|
---|
21 | if (_id == null)
|
---|
22 | {
|
---|
23 | _id = Guid.NewGuid();
|
---|
24 | }
|
---|
25 | return (Guid)_id;
|
---|
26 | }
|
---|
27 | set
|
---|
28 | {
|
---|
29 | this._id = value;
|
---|
30 | }
|
---|
31 | }
|
---|
32 | }
|
---|
33 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.