| |||||||||||||||||
Source File | Conditionals | Statements | Methods | TOTAL | |||||||||||||
Configuration\Sql\Dynamic\Handlers\DynamicTagHandler.cs | 100.0 % | 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 | ||
30 | using IBatisNet.DataMapper.Configuration.Sql.Dynamic.Elements; | |
31 | #endregion | |
32 | ||
33 | namespace IBatisNet.DataMapper.Configuration.Sql.Dynamic.Handlers | |
34 | { | |
35 | /// <summary> | |
36 | /// Summary description for DynamicTagHandler. | |
37 | /// </summary> | |
38 | public class DynamicTagHandler : BaseTagHandler | |
39 | { | |
40 | #region Methods | |
41 | /// <summary> | |
42 | /// | |
43 | /// </summary> | |
44 | /// <param name="ctx"></param> | |
45 | /// <param name="tag"></param> | |
46 | /// <param name="parameterObject"></param> | |
47 | /// <returns></returns> | |
48 | 27 | public override int DoStartFragment(SqlTagContext ctx, SqlTag tag, Object parameterObject) |
49 | { | |
50 | 27 | ctx.FirstNonDynamicTagWithPrepend = null ; |
51 | 27 | if (tag.IsPrependAvailable) |
52 | { | |
53 | 26 | ctx.IsOverridePrepend = true; |
54 | } | |
55 | 27 | return BaseTagHandler.INCLUDE_BODY; |
56 | } | |
57 | #endregion | |
58 | ||
59 | } | |
60 | } | |
61 |
|