Datei: NDODLL/IMetaClass.cs

Last Commit (9de9fa9)
1 //
2 // Copyright (c) 2002-2016 Mirko Matytschak
3 // (www.netdataobjects.de)
4 //
5 // Author: Mirko Matytschak
6 //
7 // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
8 // documentation files (the "Software"), to deal in the Software without restriction, including without limitation
9 // the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
10 // Software, and to permit persons to whom the Software is furnished to do so, subject to the following
11 // conditions:
12
13 // The above copyright notice and this permission notice shall be included in all copies or substantial portions
14 // of the Software.
15 //
16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
17 // TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
19 // CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 // DEALINGS IN THE SOFTWARE.
21
22
 
23 using System;
24 using System.Data;
25
26 namespace NDO
27 {
28 ····/// <summary>
29 ····/// This interface is for internal use of the NDO Framework. Don't use it in your application code.
30 ····/// </summary>
31 ····public interface IMetaClass
32 ····{
33
34 ········/// <summary>
35 /// Create a new object.
36 ········/// </summary>
37 ········IPersistenceCapable CreateObject();
38
39 ········/// <summary>
40 ········/// Gets the ordinal number of a relation. Ordinal numbers are defined by the enhancer.
41 ········/// </summary>
42 ········/// <param name="fieldName">The relation field name</param>
43 ········/// <returns>The ordinal number</returns>
44 ········/// <remarks>Throws a NDOException, if the field doesn't exist.</remarks>
45 ········int GetRelationOrdinal(string fieldName);
 
 
46
 
 
 
 
 
 
 
 
 
 
 
47 ····}
48 }
49
New Commit (a99de3b)
1 //
2 // Copyright (c) 2002-2016 Mirko Matytschak
3 // (www.netdataobjects.de)
4 //
5 // Author: Mirko Matytschak
6 //
7 // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
8 // documentation files (the "Software"), to deal in the Software without restriction, including without limitation
9 // the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
10 // Software, and to permit persons to whom the Software is furnished to do so, subject to the following
11 // conditions:
12
13 // The above copyright notice and this permission notice shall be included in all copies or substantial portions
14 // of the Software.
15 //
16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
17 // TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
19 // CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 // DEALINGS IN THE SOFTWARE.
21
22
23 using NDO.Configuration;
24 using System;
25 using System.Data;
26
27 namespace NDO
28 {
29 ····/// <summary>
30 ····/// This interface is for internal use of the NDO Framework. Don't use it in your application code.
31 ····/// </summary>
32 ····public interface IMetaClass
33 ····{
34
35 ········/// <summary>
36 /// Create a new object without constructor parameters.
37 ········/// </summary>
38 ········IPersistenceCapable CreateObject();
39
40 ········/// <summary>
41 ········/// Gets the ordinal number of a relation. Ordinal numbers are defined by the enhancer.
42 ········/// </summary>
43 ········/// <param name="fieldName">The relation field name</param>
44 ········/// <returns>The ordinal number</returns>
45 ········/// <remarks>Throws a NDOException, if the field doesn't exist.</remarks>
46 ········int GetRelationOrdinal(string fieldName);
47
48 ····}
49
50 ····/// <summary>
51 ····/// This interface is for internal use of the NDO Framework. Don't use it in your application code.
52 ····/// </summary>
53 ····public interface IMetaClass2 : IMetaClass
54 ····{
55 ········/// <summary>
56 ········/// Create a new object.
57 ········/// </summary>
58 ········/// <param name="configContainer">The config container used to resolve constructor parameters</param>
59 ········/// <remarks>This method will be used for classes with constructor parameters</remarks>
60 ········IPersistenceCapable CreateObject( INDOContainer configContainer );
61 ····}
62 }
63