@@ -161,7 +161,7 @@ public static IDapperExtensionsConfiguration Configure(this Type defaultMapper,
161161 /// <summary>
162162 /// Executes a query using the specified predicate, returning an integer that represents the number of rows that match the query.
163163 /// </summary>
164- public static async Task < int > CountAsync < T > ( this IDbConnection connection , object predicate = null , IDbTransaction transaction = null , int ? commandTimeout = null ) where T : class
164+ public static async Task < int > CountAsync < T > ( this IDbConnection connection , object predicate = null , IDbTransaction transaction = null , int ? commandTimeout = null )
165165 {
166166 return await Instance . CountAsync < T > ( connection , predicate , transaction , commandTimeout ) . ConfigureAwait ( false ) ;
167167 }
@@ -170,7 +170,7 @@ public static async Task<int> CountAsync<T>(this IDbConnection connection, objec
170170 /// Executes a query for the specified id, returning the data typed as per T.
171171 /// </summary>
172172 public static async Task < T > GetAsync < T > ( this IDbConnection connection , dynamic id , IDbTransaction transaction = null ,
173- int ? commandTimeout = null , bool buffered = false ) where T : class
173+ int ? commandTimeout = null , bool buffered = false )
174174 {
175175 return await Instance . GetAsync < T > ( connection , id , transaction , commandTimeout , buffered , null ) . ConfigureAwait ( false ) ;
176176 }
@@ -192,7 +192,7 @@ public static async Task<TOut> GetPartialAsync<TIn, TOut>(this IDbConnection con
192192 /// Executes a select query using the specified predicate, returning an IEnumerable data typed as per T.
193193 /// </summary>
194194 public static async Task < IEnumerable < T > > GetListAsync < T > ( this IDbConnection connection , object predicate = null , IList < ISort > sort = null ,
195- IDbTransaction transaction = null , int ? commandTimeout = null , bool buffered = false ) where T : class
195+ IDbTransaction transaction = null , int ? commandTimeout = null , bool buffered = false )
196196 {
197197 return await Instance . GetListAsync < T > ( connection , predicate , sort , transaction , commandTimeout , buffered , null ) . ConfigureAwait ( false ) ;
198198 }
@@ -214,15 +214,15 @@ public static async Task<IEnumerable<TOut>> GetPartialListAsync<TIn, TOut>(this
214214 /// Contains Slapper.Automaper
215215 /// </summary>
216216 public static async Task < IEnumerable < T > > GetListAutoMapAsync < T > ( this IDbConnection connection , object predicate = null , IList < ISort > sort = null ,
217- IDbTransaction transaction = null , int ? commandTimeout = null , bool buffered = false , IList < IProjection > colsToSelect = null ) where T : class
217+ IDbTransaction transaction = null , int ? commandTimeout = null , bool buffered = false , IList < IProjection > colsToSelect = null )
218218 {
219219 return await Instance . GetListAutoMapAsync < T > ( connection , predicate , sort , transaction , commandTimeout , buffered , colsToSelect ) . ConfigureAwait ( false ) ;
220220 }
221221
222222 /// <summary>
223223 /// Executes an insert query for the specified entity.
224224 /// </summary>
225- public static Task InsertAsync < T > ( this IDbConnection connection , IEnumerable < T > entities , IDbTransaction transaction = null , int ? commandTimeout = default ) where T : class
225+ public static Task InsertAsync < T > ( this IDbConnection connection , IEnumerable < T > entities , IDbTransaction transaction = null , int ? commandTimeout = default )
226226 {
227227 return Instance . InsertAsync ( connection , entities , transaction , commandTimeout ) ;
228228 }
@@ -233,7 +233,7 @@ public static Task InsertAsync<T>(this IDbConnection connection, IEnumerable<T>
233233 /// If the entity has a composite key, an IDictionary<string, object> is returned with the key values.
234234 /// The key value for the entity will also be updated if the KeyType is a Guid or Identity.
235235 /// </summary>
236- public static Task < dynamic > InsertAsync < T > ( this IDbConnection connection , T entity , IDbTransaction transaction = null , int ? commandTimeout = default ) where T : class
236+ public static Task < dynamic > InsertAsync < T > ( this IDbConnection connection , T entity , IDbTransaction transaction = null , int ? commandTimeout = default )
237237 {
238238 return Instance . InsertAsync ( connection , entity , transaction , commandTimeout ) ;
239239 }
@@ -242,7 +242,7 @@ public static Task<dynamic> InsertAsync<T>(this IDbConnection connection, T enti
242242 /// Executes an update query for the specified entity.
243243 /// </summary>
244244 public static Task < bool > UpdateAsync < T > ( this IDbConnection connection , T entity , IDbTransaction transaction = null ,
245- int ? commandTimeout = null , bool ignoreAllKeyProperties = false ) where T : class
245+ int ? commandTimeout = null , bool ignoreAllKeyProperties = false )
246246 {
247247 return Instance . UpdateAsync ( connection , entity , transaction , commandTimeout , ignoreAllKeyProperties , null ) ;
248248 }
@@ -260,15 +260,15 @@ public static Task<bool> UpdatePartialAsync<TIn, TOut>(this IDbConnection connec
260260 /// <summary>
261261 /// Executes a delete query for the specified entity.
262262 /// </summary>
263- public static Task < bool > DeleteAsync < T > ( this IDbConnection connection , T entity , IDbTransaction transaction = null , int ? commandTimeout = null ) where T : class
263+ public static Task < bool > DeleteAsync < T > ( this IDbConnection connection , T entity , IDbTransaction transaction = null , int ? commandTimeout = null )
264264 {
265265 return Instance . DeleteAsync ( connection , entity , transaction , commandTimeout ) ;
266266 }
267267
268268 /// <summary>
269269 /// Executes a delete query using the specified predicate.
270270 /// </summary>
271- public static Task < bool > DeleteAsync < T > ( this IDbConnection connection , object predicate , IDbTransaction transaction = null , int ? commandTimeout = null ) where T : class
271+ public static Task < bool > DeleteAsync < T > ( this IDbConnection connection , object predicate , IDbTransaction transaction = null , int ? commandTimeout = null )
272272 {
273273 return Instance . DeleteAsync ( connection , predicate , transaction , commandTimeout ) ;
274274 }
@@ -278,7 +278,7 @@ public static Task<bool> DeleteAsync<T>(this IDbConnection connection, object pr
278278 /// Data returned is dependent upon the specified page and resultsPerPage.
279279 /// </summary>
280280 public static async Task < IEnumerable < T > > GetPageAsync < T > ( this IDbConnection connection , object predicate = null , IList < ISort > sort = null , int page = 1 ,
281- int resultsPerPage = 10 , IDbTransaction transaction = null , int ? commandTimeout = null , bool buffered = false ) where T : class
281+ int resultsPerPage = 10 , IDbTransaction transaction = null , int ? commandTimeout = null , bool buffered = false )
282282 {
283283 return await Instance . GetPageAsync < T > ( connection , predicate , sort , page , resultsPerPage , transaction , commandTimeout , buffered , null ) . ConfigureAwait ( false ) ;
284284 }
@@ -307,7 +307,7 @@ public static async Task<IEnumerable<TOut>> GetPartialPageAsync<TIn, TOut>(this
307307 /// Contains Slapper.Automaper
308308 /// </summary>
309309 public static async Task < IEnumerable < T > > GetPageAutoMapAsync < T > ( this IDbConnection connection , object predicate = null , IList < ISort > sort = null , int page = 1 ,
310- int resultsPerPage = 10 , IDbTransaction transaction = null , int ? commandTimeout = null , bool buffered = false , IList < IProjection > colsToSelect = null ) where T : class
310+ int resultsPerPage = 10 , IDbTransaction transaction = null , int ? commandTimeout = null , bool buffered = false , IList < IProjection > colsToSelect = null )
311311 {
312312 return await Instance . GetPageAutoMapAsync < T > ( connection , predicate , sort , page , resultsPerPage , transaction , commandTimeout , buffered , colsToSelect ) . ConfigureAwait ( false ) ;
313313 }
@@ -317,7 +317,7 @@ public static async Task<IEnumerable<T>> GetPageAutoMapAsync<T>(this IDbConnecti
317317 /// Data returned is dependent upon the specified firstResult and maxResults.
318318 /// </summary>
319319 public static async Task < IEnumerable < T > > GetSetAsync < T > ( this IDbConnection connection , object predicate = null , IList < ISort > sort = null , int firstResult = 1 ,
320- int maxResults = 10 , IDbTransaction transaction = null , int ? commandTimeout = null , bool buffered = false ) where T : class
320+ int maxResults = 10 , IDbTransaction transaction = null , int ? commandTimeout = null , bool buffered = false )
321321 {
322322 return await Instance . GetSetAsync < T > ( connection , predicate , sort , firstResult , maxResults , transaction , commandTimeout , buffered , null ) . ConfigureAwait ( false ) ;
323323 }
@@ -367,7 +367,7 @@ public static async Task<Guid> GetNextGuid()
367367 /// Gets the appropriate mapper for the specified type T.
368368 /// If the mapper for the type is not yet created, a new mapper is generated from the mapper type specifed by DefaultMapper.
369369 /// </summary>
370- public static async Task < IClassMapper > GetMap < T > ( ) where T : class
370+ public static async Task < IClassMapper > GetMap < T > ( )
371371 {
372372 return await Task . FromResult ( _configuration . GetMap < T > ( ) ) ;
373373 }
0 commit comments