@@ -81,7 +81,7 @@ public string GenerateComment(string comment)
8181 /// <param name="entity">The entity object.</param>
8282 /// <param name="keyColumns">The list of key columns for deletion.</param>
8383 /// <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 )
8585 {
8686
8787 string tableName = GetTableName < T > ( ) ;
@@ -103,7 +103,7 @@ public string GenerateDeleteQuery<T>(T entity, List<string> keyColumns) where T
103103 /// <param name="keyColumns">The list of key columns for insertion.</param>
104104 /// <param name="excludedColumns">The list of columns to exclude from insertion.</param>
105105 /// <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 )
107107 {
108108 string tableName = GetTableName < T > ( ) ;
109109 string schemaName = GetTableSchema < T > ( ) ?? DEFAULT_SCHEMA_NAME ;
@@ -137,7 +137,7 @@ public string GenerateInsertQuery<T>(T entity, List<string> keyColumns, List<str
137137 /// <param name="ListOfColumns">The list of columns to select.</param>
138138 /// <param name="schemaName">The schema name (if applicable).</param>
139139 /// <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 )
141141 {
142142 if ( string . IsNullOrEmpty ( tableName ) || ListOfColumns == null || ListOfColumns . Count == 0 )
143143 {
@@ -166,7 +166,7 @@ public string GenerateSelectQuery<T>(string tableName, List<string> ListOfColumn
166166 /// <param name="excludedColumns">The list of columns to exclude from update.</param>
167167 /// <param name="editedProperties">The dictionary containing edited properties.</param>
168168 /// <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 )
170170 {
171171 string tableName = GetTableName < T > ( ) ;
172172
@@ -188,7 +188,7 @@ public string GenerateUpdateQuery<T>(T DataContract, List<string> keyColumns, Li
188188 /// <param name="entity">The entity object.</param>
189189 /// <param name="keyColumns">The list of key columns for the condition.</param>
190190 /// <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 )
192192 {
193193 Type entityType = typeof ( T ) ;
194194 PropertyInfo [ ] keyProperties = GetKeyProperties < T > ( ) ;
0 commit comments