Skip to content
Adam O'Neil edited this page Jun 1, 2022 · 8 revisions

Dapper.Repository.DbContext DbContext.cs

Properties

Methods

Dapper.Repository.Repository Repository.cs

Methods

  • Task<TModel> GetAsync (TKey id, [ IDbTransaction txn ])
  • Task<TModel> GetWhereAsync (object criteria, [ IDbTransaction txn ])
  • Task<TModel> SaveAsync (TModel model, [ IEnumerable columnNames ], [ IDbTransaction txn ])
  • Task DeleteAsync (TModel model, [ IDbTransaction txn ])
  • Task<TModel> MergeAsync (TModel model, [ Action<TModel, TModel> onExisting ], [ IDbTransaction txn ])

Dapper.Repository.SqlServer.Extensions.SqlServerExtensions SqlServerExtensions.cs

Methods

  • Task<TModel> GetAsync (this IDbConnection connection, TKey id, [ string identityColumn ], [ IDbTransaction txn ])
  • Task<TModel> GetWhereAsync (this IDbConnection connection, object criteria, [ IDbTransaction txn ])
  • Task<TModel> InsertAsync (this IDbConnection connection, TModel model, [ IEnumerable columnNames ], [ string identityColumn ], [ Action<TModel, TKey> afterInsert ], [ IDbTransaction txn ])
  • Task UpdateAsync (this IDbConnection connection, TModel model, [ IEnumerable columnNames ], [ string identityColumn ], [ IDbTransaction txn ])
  • Task DeleteAsync (this IDbConnection connection, TKey id, [ string identityColumn ], [ string tableName ], [ IDbTransaction txn ])
  • Task<TModel> SaveAsync (this IDbConnection connection, TModel model, [ IEnumerable columnNames ], [ string identityColumn ], [ IDbTransaction txn ])
  • Task<TModel> MergeAsync (this IDbConnection connection, TModel model, [ Action onExisting ], [ IDbTransaction txn ])

Dapper.Repository.SqlServer.Extensions.SqlServerExtensions SqlServerExtensions_Dictionary.cs

Methods

  • Task<object> InsertAsync (this IDbConnection connection, string tableName, Dictionary<string, object> columnValues, [ IDbTransaction txn ])
  • Task UpdateAsync (this IDbConnection connection, string tableName, Dictionary<string, object> columnValues, [ string identityColumn ], [ IDbTransaction txn ])