| |||||||||||||||||
Source File | Conditionals | Statements | Methods | TOTAL | |||||||||||||
Configuration\Sql\Dynamic\Elements\Conditional.cs | - | 100.0 % | 100.0 % | 100.0 % |
|
1 | ||
2 | #region Apache Notice | |
3 | /***************************************************************************** | |
4 | * $Header: $ | |
5 | * $Revision: $ | |
6 | * $Date: $ | |
7 | * | |
8 | * iBATIS.NET Data Mapper | |
9 | * Copyright (C) 2004 - Gilles Bayon | |
10 | * | |
11 | * | |
12 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
13 | * you may not use this file except in compliance with the License. | |
14 | * You may obtain a copy of the License at | |
15 | * | |
16 | * http://www.apache.org/licenses/LICENSE-2.0 | |
17 | * | |
18 | * Unless required by applicable law or agreed to in writing, software | |
19 | * distributed under the License is distributed on an "AS IS" BASIS, | |
20 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
21 | * See the License for the specific language governing permissions and | |
22 | * limitations under the License. | |
23 | * | |
24 | ********************************************************************************/ | |
25 | #endregion | |
26 | ||
27 | #region Imports | |
28 | using System; | |
29 | using System.Xml.Serialization; | |
30 | ||
31 | using IBatisNet.DataMapper.Configuration.Sql.Dynamic.Handlers; | |
32 | #endregion | |
33 | ||
34 | ||
35 | namespace IBatisNet.DataMapper.Configuration.Sql.Dynamic.Elements | |
36 | { | |
37 | /// <summary> | |
38 | /// Summary description for Conditional. | |
39 | /// </summary> | |
40 | [Serializable] | |
41 | public abstract class Conditional : BaseTag | |
42 | { | |
43 | ||
44 | #region Fields | |
45 | ||
46 | [NonSerialized] | |
47 | private string _compareValue = string.Empty; | |
48 | [NonSerialized] | |
49 | private string _compareProperty = string.Empty; | |
50 | ||
51 | #endregion | |
52 | ||
53 | /// <summary> | |
54 | /// CompareProperty attribute | |
55 | /// </summary> | |
56 | [XmlAttribute("compareProperty")] | |
57 | public string CompareProperty | |
58 | { | |
59 | 34 | get |
60 | { | |
61 | 34 | return _compareProperty; |
62 | } | |
63 | 170 | set |
64 | { | |
65 | 170 | _compareProperty = value; |
66 | } | |
67 | } | |
68 | ||
69 | ||
70 | /// <summary> | |
71 | /// CompareValue attribute | |
72 | /// </summary> | |
73 | [XmlAttribute("compareValue")] | |
74 | public string CompareValue | |
75 | { | |
76 | 34 | get |
77 | { | |
78 | 34 | return _compareValue; |
79 | } | |
80 | 2210 | set |
81 | { | |
82 | 2210 | _compareValue = value; |
83 | } | |
84 | } | |
85 | } | |
86 | } | |
87 |
|