@@ -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="IDataContract"/>. </typeparam>
15+ /// <typeparam name="T">The type for which to get the table name.</typeparam>
1616 /// <returns>The table name.</returns>
17- public string GetTableName < T > ( ) where T : IDataContract
17+ public string GetTableName < T > ( )
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="IDataContract"/>. </typeparam>
25+ /// <typeparam name="T">The type for which to get the table schema.</typeparam>
2626 /// <returns>The table schema name or null if not specified.</returns>
27- public string ? GetTableSchema < T > ( ) where T : IDataContract
27+ public string ? GetTableSchema < T > ( )
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="IDataContract"/>. </typeparam>
35+ /// <typeparam name="T">The type for which to determine the generation of INSERT query with ID.</typeparam>
3636 /// <returns>True if the INSERT query should include ID, otherwise false.</returns>
37- public bool GetInsertWithID < T > ( ) where T : IDataContract
37+ public bool GetInsertWithID < T > ( )
3838 {
3939 return CacheManager . GetInsertWithID ( typeof ( T ) ) ;
4040 }
@@ -44,80 +44,73 @@ public bool GetInsertWithID<T>() where T : IDataContract
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="IDataContract"/>. </typeparam>
47+ ///</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 : IDataContract
49+ public bool GetIncludeIdentityInsert < T > ( )
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="IDataContract"/>. </typeparam>
57+ /// <typeparam name="T">The type for which to get the key columns.</typeparam>
5858 /// <returns>A list of key column names.</returns>
59- /// <seealso cref="IDataContract"/>
60- public List < string > GetKeyColumns < T > ( ) where T : IDataContract
59+ public List < string > GetKeyColumns < T > ( )
6160 {
6261 return CacheManager . GetKeyColumns ( typeof ( T ) ) ;
6362 }
6463
6564 /// <summary>
6665 /// Gets the names of properties marked as excluded properties for a specified type.
6766 /// </summary>
68- /// <typeparam name="T">The type for which to get the excluded properties. Must implement <see cref="IDataContract"/>. </typeparam>
67+ /// <typeparam name="T">The type for which to get the excluded properties.</typeparam>
6968 /// <returns>A list of excluded property names.</returns>
70- /// <seealso cref="IDataContract"/>
71- public List < string > GetExcludedColumns < T > ( ) where T : IDataContract
69+ public List < string > GetExcludedColumns < T > ( )
7270 {
7371 return CacheManager . GetExcludedColumns ( typeof ( T ) ) ;
7472 }
7573
7674 /// <summary>
7775 /// Gets the names of all properties for a specified type.
7876 /// </summary>
79- /// <typeparam name="T">The type for which to get all properties. Must implement <see cref="IDataContract"/>. </typeparam>
77+ /// <typeparam name="T">The type for which to get all properties.</typeparam>
8078 /// <returns>A list of all property names.</returns>
81- /// <seealso cref="IDataContract"/>
82- public List < string > GetAllColumns < T > ( ) where T : IDataContract
79+ public List < string > GetAllColumns < T > ( )
8380 {
8481 return CacheManager . GetAllColumns ( typeof ( T ) ) ;
8582 }
8683
8784 /// <summary>
8885 /// Retrieves a list of identity columns for a specified data contract type <typeparamref name="T"/>.
8986 /// </summary>
90- /// <typeparam name="T">The type implementing the IDataContract interface.</typeparam>
9187 /// <returns>A list containing the names of identity columns for the specified data contract type <typeparamref name="T"/>.</returns>
9288 /// <remarks>
9389 /// 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.
9490 /// </remarks>
95- /// <seealso cref="IDataContract"/>
96- public List < string > GetIdentityColumns < T > ( ) where T : IDataContract
91+ public List < string > GetIdentityColumns < T > ( )
9792 {
9893 return CacheManager . GetIdentityColumns ( typeof ( T ) ) ;
9994 }
10095
10196 /// <summary>
10297 /// Retrieves an array of <see cref="PropertyInfo"/> objects representing the properties that are used for data comparison
103- /// in objects of type <typeparamref name="T"/>. These properties are determined based on the implementation of the
104- /// <see cref="IDataContract"/> interface.
98+ /// in objects of type <typeparamref name="T"/>.
10599 /// </summary>
106100 /// <typeparam name="T">The type of objects for which to retrieve comparable properties.</typeparam>
107101 /// <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 : IDataContract
102+ public PropertyInfo [ ] GetComparableProperties < T > ( )
109103 {
110104 return CacheManager . GetComparableProperties ( typeof ( T ) ) ;
111105 }
112106
113107 /// <summary>
114108 /// Retrieves an array of <see cref="PropertyInfo"/> objects representing the properties that are used as key properties
115- /// for uniquely identifying objects of type <typeparamref name="T"/>. These key properties are determined based on the
116- /// implementation of the <see cref="IDataContract"/> interface.
109+ /// for uniquely identifying objects of type <typeparamref name="T"/>.
117110 /// </summary>
118111 /// <typeparam name="T">The type of objects for which to retrieve key properties.</typeparam>
119112 /// <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 : IDataContract
113+ public PropertyInfo [ ] GetKeyProperties < T > ( )
121114 {
122115 return CacheManager . GetKeyProperties ( typeof ( T ) ) ;
123116 }
0 commit comments