@@ -12,29 +12,29 @@ public class QueryHelper
1212 /// <summary>
1313 /// Gets the table name of a specified type, considering the TableNameAttribute if present.
1414 /// </summary>
15- /// <typeparam name="T">The type for which to get the table name. Must implement <see cref="IDataContractComparer "/>.</typeparam>
15+ /// <typeparam name="T">The type for which to get the table name. Must implement <see cref="IDataContract "/>.</typeparam>
1616 /// <returns>The table name.</returns>
17- public string GetTableName < T > ( ) where T : IDataContractComparer
17+ public string GetTableName < T > ( ) where T : IDataContract
1818 {
1919 return CacheManager . GetTableName ( typeof ( T ) ) ;
2020 }
2121
2222 /// <summary>
2323 /// Gets the table schema of a specified type, considering the TableSchemaAttribute if present.
2424 /// </summary>
25- /// <typeparam name="T">The type for which to get the table schema. Must implement <see cref="IDataContractComparer "/>.</typeparam>
25+ /// <typeparam name="T">The type for which to get the table schema. Must implement <see cref="IDataContract "/>.</typeparam>
2626 /// <returns>The table schema name or null if not specified.</returns>
27- public string ? GetTableSchema < T > ( ) where T : IDataContractComparer
27+ public string ? GetTableSchema < T > ( ) where T : IDataContract
2828 {
2929 return CacheManager . GetTableSchema ( typeof ( T ) ) ;
3030 }
3131
3232 /// <summary>
3333 /// Gets whether the type specifies to generate an INSERT query with ID, considering the GenerateInsertWithIDAttribute if present.
3434 /// </summary>
35- /// <typeparam name="T">The type for which to determine the generation of INSERT query with ID. Must implement <see cref="IDataContractComparer "/>.</typeparam>
35+ /// <typeparam name="T">The type for which to determine the generation of INSERT query with ID. Must implement <see cref="IDataContract "/>.</typeparam>
3636 /// <returns>True if the INSERT query should include ID, otherwise false.</returns>
37- public bool GetInsertWithID < T > ( ) where T : IDataContractComparer
37+ public bool GetInsertWithID < T > ( ) where T : IDataContract
3838 {
3939 return CacheManager . GetInsertWithID ( typeof ( T ) ) ;
4040 }
@@ -44,80 +44,80 @@ public bool GetInsertWithID<T>() where T : IDataContractComparer
4444 /// during insert query generation, considering the GenerateInsertWithIDAttribute if present.
4545 /// </summary>
4646 /// <typeparam name="T">The type for which to determine the inclusion of identity insert statements.
47- /// Must implement <see cref="IDataContractComparer "/>.</typeparam>
47+ /// Must implement <see cref="IDataContract "/>.</typeparam>
4848 /// <returns><c>true</c> if identity insert statements should be included; otherwise, <c>false</c>.</returns>
49- public bool GetIncludeIdentityInsert < T > ( ) where T : IDataContractComparer
49+ public bool GetIncludeIdentityInsert < T > ( ) where T : IDataContract
5050 {
5151 return CacheManager . GetIncludeIdentityInsert ( typeof ( T ) ) ;
5252 }
5353
5454 /// <summary>
5555 /// Gets the names of properties marked as key columns for a specified type.
5656 /// </summary>
57- /// <typeparam name="T">The type for which to get the key columns. Must implement <see cref="IDataContractComparer "/>.</typeparam>
57+ /// <typeparam name="T">The type for which to get the key columns. Must implement <see cref="IDataContract "/>.</typeparam>
5858 /// <returns>A list of key column names.</returns>
59- /// <seealso cref="IDataContractComparer "/>
60- public List < string > GetKeyColumns < T > ( ) where T : IDataContractComparer
59+ /// <seealso cref="IDataContract "/>
60+ public List < string > GetKeyColumns < T > ( ) where T : IDataContract
6161 {
6262 return CacheManager . GetKeyColumns ( typeof ( T ) ) ;
6363 }
6464
6565 /// <summary>
6666 /// Gets the names of properties marked as excluded properties for a specified type.
6767 /// </summary>
68- /// <typeparam name="T">The type for which to get the excluded properties. Must implement <see cref="IDataContractComparer "/>.</typeparam>
68+ /// <typeparam name="T">The type for which to get the excluded properties. Must implement <see cref="IDataContract "/>.</typeparam>
6969 /// <returns>A list of excluded property names.</returns>
70- /// <seealso cref="IDataContractComparer "/>
71- public List < string > GetExcludedColumns < T > ( ) where T : IDataContractComparer
70+ /// <seealso cref="IDataContract "/>
71+ public List < string > GetExcludedColumns < T > ( ) where T : IDataContract
7272 {
7373 return CacheManager . GetExcludedColumns ( typeof ( T ) ) ;
7474 }
7575
7676 /// <summary>
7777 /// Gets the names of all properties for a specified type.
7878 /// </summary>
79- /// <typeparam name="T">The type for which to get all properties. Must implement <see cref="IDataContractComparer "/>.</typeparam>
79+ /// <typeparam name="T">The type for which to get all properties. Must implement <see cref="IDataContract "/>.</typeparam>
8080 /// <returns>A list of all property names.</returns>
81- /// <seealso cref="IDataContractComparer "/>
82- public List < string > GetAllColumns < T > ( ) where T : IDataContractComparer
81+ /// <seealso cref="IDataContract "/>
82+ public List < string > GetAllColumns < T > ( ) where T : IDataContract
8383 {
8484 return CacheManager . GetAllColumns ( typeof ( T ) ) ;
8585 }
8686
8787 /// <summary>
8888 /// Retrieves a list of identity columns for a specified data contract type <typeparamref name="T"/>.
8989 /// </summary>
90- /// <typeparam name="T">The type implementing the IDataContractComparer interface.</typeparam>
90+ /// <typeparam name="T">The type implementing the IDataContract interface.</typeparam>
9191 /// <returns>A list containing the names of identity columns for the specified data contract type <typeparamref name="T"/>.</returns>
9292 /// <remarks>
9393 /// This method uses reflection to analyze the properties of the specified type <typeparamref name="T"/> and retrieves properties marked with a [Key] attribute, indicating identity columns.
9494 /// </remarks>
95- /// <seealso cref="IDataContractComparer "/>
96- public List < string > GetIdentityColumns < T > ( ) where T : IDataContractComparer
95+ /// <seealso cref="IDataContract "/>
96+ public List < string > GetIdentityColumns < T > ( ) where T : IDataContract
9797 {
9898 return CacheManager . GetIdentityColumns ( typeof ( T ) ) ;
9999 }
100100
101101 /// <summary>
102102 /// Retrieves an array of <see cref="PropertyInfo"/> objects representing the properties that are used for data comparison
103103 /// in objects of type <typeparamref name="T"/>. These properties are determined based on the implementation of the
104- /// <see cref="IDataContractComparer "/> interface.
104+ /// <see cref="IDataContract "/> interface.
105105 /// </summary>
106106 /// <typeparam name="T">The type of objects for which to retrieve comparable properties.</typeparam>
107107 /// <returns>An array of <see cref="PropertyInfo"/> objects representing the comparable properties of type <typeparamref name="T"/>.</returns>
108- public PropertyInfo [ ] GetComparableProperties < T > ( ) where T : IDataContractComparer
108+ public PropertyInfo [ ] GetComparableProperties < T > ( ) where T : IDataContract
109109 {
110110 return CacheManager . GetComparableProperties ( typeof ( T ) ) ;
111111 }
112112
113113 /// <summary>
114114 /// Retrieves an array of <see cref="PropertyInfo"/> objects representing the properties that are used as key properties
115115 /// for uniquely identifying objects of type <typeparamref name="T"/>. These key properties are determined based on the
116- /// implementation of the <see cref="IDataContractComparer "/> interface.
116+ /// implementation of the <see cref="IDataContract "/> interface.
117117 /// </summary>
118118 /// <typeparam name="T">The type of objects for which to retrieve key properties.</typeparam>
119119 /// <returns>An array of <see cref="PropertyInfo"/> objects representing the key properties of type <typeparamref name="T"/>.</returns>
120- public PropertyInfo [ ] GetKeyProperties < T > ( ) where T : IDataContractComparer
120+ public PropertyInfo [ ] GetKeyProperties < T > ( ) where T : IDataContract
121121 {
122122 return CacheManager . GetKeyProperties ( typeof ( T ) ) ;
123123 }
0 commit comments