| |||||||||||||||||
Source File | Conditionals | Statements | Methods | TOTAL | |||||||||||||
TypeHandlers\IParameterSetter.cs | - | - | - | - |
|
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 Using | |
28 | ||
29 | using System.Data; | |
30 | ||
31 | ||
32 | #endregion | |
33 | ||
34 | namespace IBatisNet.DataMapper.TypeHandlers | |
35 | { | |
36 | /// <summary> | |
37 | /// Allows parameters to be set on the underlying prepared IDbCommand. | |
38 | /// TypeHandlerCallback implementations use this interface to | |
39 | /// process values before they are set on the IDbCommand. | |
40 | /// </summary> | |
41 | /// <remarks> | |
42 | /// There is no need to implement this. The implementation | |
43 | /// will be passed into the TypeHandlerCallback automatically. | |
44 | /// </remarks> | |
45 | public interface IParameterSetter | |
46 | { | |
47 | ||
48 | /// <summary> | |
49 | /// Returns the underlying IDataParameter | |
50 | /// </summary> | |
51 | IDataParameter DataParameter { get; } | |
52 | ||
53 | /// <summary> | |
54 | /// Get the parameter value | |
55 | /// </summary> | |
56 | object Value { set; } | |
57 | } | |
58 | } | |
59 |
|