@@ -81,7 +81,7 @@ public string GenerateComment(string comment)
81
81
/// <param name="entity">The entity object.</param>
82
82
/// <param name="keyColumns">The list of key columns for deletion.</param>
83
83
/// <returns>The generated SQL delete query.</returns>
84
- public string GenerateDeleteQuery < T > ( T entity , List < string > keyColumns ) where T : IDataContract
84
+ public string GenerateDeleteQuery < T > ( T entity , List < string > keyColumns )
85
85
{
86
86
87
87
string tableName = GetTableName < T > ( ) ;
@@ -103,7 +103,7 @@ public string GenerateDeleteQuery<T>(T entity, List<string> keyColumns) where T
103
103
/// <param name="keyColumns">The list of key columns for insertion.</param>
104
104
/// <param name="excludedColumns">The list of columns to exclude from insertion.</param>
105
105
/// <returns>The generated SQL insert query.</returns>
106
- public string GenerateInsertQuery < T > ( T entity , List < string > keyColumns , List < string > excludedColumns ) where T : IDataContract
106
+ public string GenerateInsertQuery < T > ( T entity , List < string > keyColumns , List < string > excludedColumns )
107
107
{
108
108
string tableName = GetTableName < T > ( ) ;
109
109
string schemaName = GetTableSchema < T > ( ) ?? DEFAULT_SCHEMA_NAME ;
@@ -137,7 +137,7 @@ public string GenerateInsertQuery<T>(T entity, List<string> keyColumns, List<str
137
137
/// <param name="ListOfColumns">The list of columns to select.</param>
138
138
/// <param name="schemaName">The schema name (if applicable).</param>
139
139
/// <returns>The generated SQL select query.</returns>
140
- public string GenerateSelectQuery < T > ( string tableName , List < string > ListOfColumns , string schemaName ) where T : IDataContract
140
+ public string GenerateSelectQuery < T > ( string tableName , List < string > ListOfColumns , string schemaName )
141
141
{
142
142
if ( string . IsNullOrEmpty ( tableName ) || ListOfColumns == null || ListOfColumns . Count == 0 )
143
143
{
@@ -166,7 +166,7 @@ public string GenerateSelectQuery<T>(string tableName, List<string> ListOfColumn
166
166
/// <param name="excludedColumns">The list of columns to exclude from update.</param>
167
167
/// <param name="editedProperties">The dictionary containing edited properties.</param>
168
168
/// <returns>The generated SQL update query.</returns>
169
- public string GenerateUpdateQuery < T > ( T DataContract , List < string > keyColumns , List < string > excludedColumns , ( string propName , object propValue ) [ ] editedProperties ) where T : IDataContract
169
+ public string GenerateUpdateQuery < T > ( T DataContract , List < string > keyColumns , List < string > excludedColumns , ( string propName , object propValue ) [ ] editedProperties )
170
170
{
171
171
string tableName = GetTableName < T > ( ) ;
172
172
@@ -188,7 +188,7 @@ public string GenerateUpdateQuery<T>(T DataContract, List<string> keyColumns, Li
188
188
/// <param name="entity">The entity object.</param>
189
189
/// <param name="keyColumns">The list of key columns for the condition.</param>
190
190
/// <returns>The generated SQL condition.</returns>
191
- public List < string > GetCondition < T > ( T entity , List < string > keyColumns ) where T : IDataContract
191
+ public List < string > GetCondition < T > ( T entity , List < string > keyColumns )
192
192
{
193
193
Type entityType = typeof ( T ) ;
194
194
PropertyInfo [ ] keyProperties = GetKeyProperties < T > ( ) ;
0 commit comments