Class DapperImplementor
Inheritance
System.Object
DapperImplementor
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: DapperExtensions.StrongName.dll
Syntax
public class DapperImplementor : IDapperImplementor
Constructors
|
Improve this Doc
View Source
DapperImplementor(ISqlGenerator)
Declaration
public DapperImplementor(ISqlGenerator sqlGenerator)
Parameters
Properties
|
Improve this Doc
View Source
SqlGenerator
Declaration
public ISqlGenerator SqlGenerator { get; }
Property Value
Methods
|
Improve this Doc
View Source
Count<T>(DbConnection, Object, DbTransaction, Nullable<Int32>)
Declaration
public int Count<T>(DbConnection connection, object predicate, DbTransaction transaction, int? commandTimeout)
where T : class
Parameters
Type |
Name |
Description |
System.Data.Common.DbConnection |
connection |
|
System.Object |
predicate |
|
System.Data.Common.DbTransaction |
transaction |
|
System.Nullable<System.Int32> |
commandTimeout |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
|
Improve this Doc
View Source
Delete<T>(DbConnection, T, DbTransaction, Nullable<Int32>)
Declaration
public bool Delete<T>(DbConnection connection, T entity, DbTransaction transaction, int? commandTimeout)
where T : class
Parameters
Type |
Name |
Description |
System.Data.Common.DbConnection |
connection |
|
T |
entity |
|
System.Data.Common.DbTransaction |
transaction |
|
System.Nullable<System.Int32> |
commandTimeout |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
Delete<T>(DbConnection, IClassMapper, IPredicate, DbTransaction, Nullable<Int32>)
Declaration
protected bool Delete<T>(DbConnection connection, IClassMapper classMap, IPredicate predicate, DbTransaction transaction, int? commandTimeout)
where T : class
Parameters
Type |
Name |
Description |
System.Data.Common.DbConnection |
connection |
|
IClassMapper |
classMap |
|
IPredicate |
predicate |
|
System.Data.Common.DbTransaction |
transaction |
|
System.Nullable<System.Int32> |
commandTimeout |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
Delete<T>(DbConnection, Object, DbTransaction, Nullable<Int32>)
Declaration
public bool Delete<T>(DbConnection connection, object predicate, DbTransaction transaction, int? commandTimeout)
where T : class
Parameters
Type |
Name |
Description |
System.Data.Common.DbConnection |
connection |
|
System.Object |
predicate |
|
System.Data.Common.DbTransaction |
transaction |
|
System.Nullable<System.Int32> |
commandTimeout |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
Get<T>(DbConnection, Object, DbTransaction, Nullable<Int32>)
Declaration
public T Get<T>(DbConnection connection, dynamic id, DbTransaction transaction, int? commandTimeout)
where T : class
Parameters
Type |
Name |
Description |
System.Data.Common.DbConnection |
connection |
|
System.Object |
id |
|
System.Data.Common.DbTransaction |
transaction |
|
System.Nullable<System.Int32> |
commandTimeout |
|
Returns
Type Parameters
|
Improve this Doc
View Source
GetEntityPredicate(IClassMapper, Object)
Declaration
protected IPredicate GetEntityPredicate(IClassMapper classMap, object entity)
Parameters
Type |
Name |
Description |
IClassMapper |
classMap |
|
System.Object |
entity |
|
Returns
|
Improve this Doc
View Source
GetIdPredicate(IClassMapper, Object)
Declaration
protected IPredicate GetIdPredicate(IClassMapper classMap, object id)
Parameters
Type |
Name |
Description |
IClassMapper |
classMap |
|
System.Object |
id |
|
Returns
|
Improve this Doc
View Source
GetKeyPredicate<T>(IClassMapper, T)
Declaration
protected IPredicate GetKeyPredicate<T>(IClassMapper classMap, T entity)
where T : class
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
GetList<T>(DbConnection, IClassMapper, IPredicate, IList<ISort>, DbTransaction, Nullable<Int32>, Boolean)
Declaration
protected IEnumerable<T> GetList<T>(DbConnection connection, IClassMapper classMap, IPredicate predicate, IList<ISort> sort, DbTransaction transaction, int? commandTimeout, bool buffered)
where T : class
Parameters
Type |
Name |
Description |
System.Data.Common.DbConnection |
connection |
|
IClassMapper |
classMap |
|
IPredicate |
predicate |
|
System.Collections.Generic.IList<ISort> |
sort |
|
System.Data.Common.DbTransaction |
transaction |
|
System.Nullable<System.Int32> |
commandTimeout |
|
System.Boolean |
buffered |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
Type Parameters
|
Improve this Doc
View Source
GetList<T>(DbConnection, Object, IList<ISort>, DbTransaction, Nullable<Int32>, Boolean)
Declaration
public IEnumerable<T> GetList<T>(DbConnection connection, object predicate, IList<ISort> sort, DbTransaction transaction, int? commandTimeout, bool buffered)
where T : class
Parameters
Type |
Name |
Description |
System.Data.Common.DbConnection |
connection |
|
System.Object |
predicate |
|
System.Collections.Generic.IList<ISort> |
sort |
|
System.Data.Common.DbTransaction |
transaction |
|
System.Nullable<System.Int32> |
commandTimeout |
|
System.Boolean |
buffered |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
Type Parameters
|
Improve this Doc
View Source
GetMultiple(DbConnection, GetMultiplePredicate, DbTransaction, Nullable<Int32>)
Declaration
public IMultipleResultReader GetMultiple(DbConnection connection, GetMultiplePredicate predicate, DbTransaction transaction, int? commandTimeout)
Parameters
Type |
Name |
Description |
System.Data.Common.DbConnection |
connection |
|
GetMultiplePredicate |
predicate |
|
System.Data.Common.DbTransaction |
transaction |
|
System.Nullable<System.Int32> |
commandTimeout |
|
Returns
|
Improve this Doc
View Source
GetMultipleByBatch(DbConnection, GetMultiplePredicate, DbTransaction, Nullable<Int32>)
Declaration
protected GridReaderResultReader GetMultipleByBatch(DbConnection connection, GetMultiplePredicate predicate, DbTransaction transaction, int? commandTimeout)
Parameters
Type |
Name |
Description |
System.Data.Common.DbConnection |
connection |
|
GetMultiplePredicate |
predicate |
|
System.Data.Common.DbTransaction |
transaction |
|
System.Nullable<System.Int32> |
commandTimeout |
|
Returns
|
Improve this Doc
View Source
GetMultipleBySequence(DbConnection, GetMultiplePredicate, DbTransaction, Nullable<Int32>)
Declaration
protected SequenceReaderResultReader GetMultipleBySequence(DbConnection connection, GetMultiplePredicate predicate, DbTransaction transaction, int? commandTimeout)
Parameters
Type |
Name |
Description |
System.Data.Common.DbConnection |
connection |
|
GetMultiplePredicate |
predicate |
|
System.Data.Common.DbTransaction |
transaction |
|
System.Nullable<System.Int32> |
commandTimeout |
|
Returns
|
Improve this Doc
View Source
GetPage<T>(DbConnection, IClassMapper, IPredicate, IList<ISort>, Int32, Int32, DbTransaction, Nullable<Int32>, Boolean)
Declaration
protected IEnumerable<T> GetPage<T>(DbConnection connection, IClassMapper classMap, IPredicate predicate, IList<ISort> sort, int page, int resultsPerPage, DbTransaction transaction, int? commandTimeout, bool buffered)
where T : class
Parameters
Type |
Name |
Description |
System.Data.Common.DbConnection |
connection |
|
IClassMapper |
classMap |
|
IPredicate |
predicate |
|
System.Collections.Generic.IList<ISort> |
sort |
|
System.Int32 |
page |
|
System.Int32 |
resultsPerPage |
|
System.Data.Common.DbTransaction |
transaction |
|
System.Nullable<System.Int32> |
commandTimeout |
|
System.Boolean |
buffered |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
Type Parameters
|
Improve this Doc
View Source
GetPage<T>(DbConnection, Object, IList<ISort>, Int32, Int32, DbTransaction, Nullable<Int32>, Boolean)
Declaration
public IEnumerable<T> GetPage<T>(DbConnection connection, object predicate, IList<ISort> sort, int page, int resultsPerPage, DbTransaction transaction, int? commandTimeout, bool buffered)
where T : class
Parameters
Type |
Name |
Description |
System.Data.Common.DbConnection |
connection |
|
System.Object |
predicate |
|
System.Collections.Generic.IList<ISort> |
sort |
|
System.Int32 |
page |
|
System.Int32 |
resultsPerPage |
|
System.Data.Common.DbTransaction |
transaction |
|
System.Nullable<System.Int32> |
commandTimeout |
|
System.Boolean |
buffered |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
Type Parameters
|
Improve this Doc
View Source
GetPredicate(IClassMapper, Object)
Declaration
protected IPredicate GetPredicate(IClassMapper classMap, object predicate)
Parameters
Type |
Name |
Description |
IClassMapper |
classMap |
|
System.Object |
predicate |
|
Returns
|
Improve this Doc
View Source
GetSet<T>(DbConnection, IClassMapper, IPredicate, IList<ISort>, Int32, Int32, DbTransaction, Nullable<Int32>, Boolean)
Declaration
protected IEnumerable<T> GetSet<T>(DbConnection connection, IClassMapper classMap, IPredicate predicate, IList<ISort> sort, int firstResult, int maxResults, DbTransaction transaction, int? commandTimeout, bool buffered)
where T : class
Parameters
Type |
Name |
Description |
System.Data.Common.DbConnection |
connection |
|
IClassMapper |
classMap |
|
IPredicate |
predicate |
|
System.Collections.Generic.IList<ISort> |
sort |
|
System.Int32 |
firstResult |
|
System.Int32 |
maxResults |
|
System.Data.Common.DbTransaction |
transaction |
|
System.Nullable<System.Int32> |
commandTimeout |
|
System.Boolean |
buffered |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
Type Parameters
|
Improve this Doc
View Source
GetSet<T>(DbConnection, Object, IList<ISort>, Int32, Int32, DbTransaction, Nullable<Int32>, Boolean)
Declaration
public IEnumerable<T> GetSet<T>(DbConnection connection, object predicate, IList<ISort> sort, int firstResult, int maxResults, DbTransaction transaction, int? commandTimeout, bool buffered)
where T : class
Parameters
Type |
Name |
Description |
System.Data.Common.DbConnection |
connection |
|
System.Object |
predicate |
|
System.Collections.Generic.IList<ISort> |
sort |
|
System.Int32 |
firstResult |
|
System.Int32 |
maxResults |
|
System.Data.Common.DbTransaction |
transaction |
|
System.Nullable<System.Int32> |
commandTimeout |
|
System.Boolean |
buffered |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
Type Parameters
|
Improve this Doc
View Source
Insert<T>(DbConnection, T, DbTransaction, Nullable<Int32>)
Declaration
public dynamic Insert<T>(DbConnection connection, T entity, DbTransaction transaction, int? commandTimeout)
where T : class
Parameters
Type |
Name |
Description |
System.Data.Common.DbConnection |
connection |
|
T |
entity |
|
System.Data.Common.DbTransaction |
transaction |
|
System.Nullable<System.Int32> |
commandTimeout |
|
Returns
Type |
Description |
System.Object |
|
Type Parameters
|
Improve this Doc
View Source
Insert<T>(DbConnection, IEnumerable<T>, DbTransaction, Nullable<Int32>)
Declaration
public void Insert<T>(DbConnection connection, IEnumerable<T> entities, DbTransaction transaction, int? commandTimeout)
where T : class
Parameters
Type |
Name |
Description |
System.Data.Common.DbConnection |
connection |
|
System.Collections.Generic.IEnumerable<T> |
entities |
|
System.Data.Common.DbTransaction |
transaction |
|
System.Nullable<System.Int32> |
commandTimeout |
|
Type Parameters
|
Improve this Doc
View Source
Update<T>(DbConnection, T, DbTransaction, Nullable<Int32>)
Declaration
public bool Update<T>(DbConnection connection, T entity, DbTransaction transaction, int? commandTimeout)
where T : class
Parameters
Type |
Name |
Description |
System.Data.Common.DbConnection |
connection |
|
T |
entity |
|
System.Data.Common.DbTransaction |
transaction |
|
System.Nullable<System.Int32> |
commandTimeout |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Implements