This repository has been archived by the owner on Feb 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
MySQL CRUD Methods
Adam O'Neil edited this page Jan 11, 2019
·
2 revisions
Use the namespace Postulate.Lite.MySql.IntKey
to make these extension methods available to IDbConnection
.
- void CreateTable (this IDbConnection connection, string tableName)
- void Delete (this IDbConnection connection, int id, IUser user, string tableName)
- Task DeleteAsync (this IDbConnection connection, int id, IUser user, string tableName)
- bool Exists (this IDbConnection connection, int id, IUser user, string tableName)
- Task<bool> ExistsAsync (this IDbConnection connection, int id, IUser user, string tableName)
- bool ExistsWhere (this IDbConnection connection, object criteria, IUser user, string tableName)
- Task<bool> ExistsWhereAsync (this IDbConnection connection, object criteria, IUser user, string tableName)
- TModel Find (this IDbConnection connection, int id, IUser user, string tableName)
- Task<TModel> FindAsync (this IDbConnection connection, int id, IUser user, string tableName)
- TModel FindWhere (this IDbConnection connection, object criteria, IUser user, string tableName)
- Task<TModel> FindWhereAsync (this IDbConnection connection, object criteria, IUser user, string tableName)
- int Insert<TModel> (this IDbConnection connection, TModel object, IUser user, string tableName)
- Task<int> InsertAsync<TModel> (this IDbConnection connection, TModel object, IUser user, string tableName)
- int Merge<TModel> (this IDbConnection connection, TModel object, IUser user, string tableName)
- Task<int> MergeAsync<TModel> (this IDbConnection connection, TModel object, IUser user, string tableName)
- void PlainInsert<TModel> (this IDbConnection connection, TModel object, IUser user, string tableName)
- Task PlainInsertAsync<TModel> (this IDbConnection connection, TModel object, IUser user, string tableName)
- int Save<TModel> (this IDbConnection connection, TModel object, IUser user, string tableName)
- Task<int> SaveAsync<TModel> (this IDbConnection connection, TModel object, IUser user, string tableName)
- void Update<TModel> (this IDbConnection connection, TModel object, IUser user, string tableName)
- void Update<TModel> (this IDbConnection connection, TModel object, IUser user, params Expression<Func<TModel, object>>[] setColumns)
- Task UpdateAsync<TModel> (this IDbConnection connection, TModel object, IUser user, string tableName)
- Task UpdateAsync<TModel> (this IDbConnection connection, TModel object, IUser user, params Expression<Func<TModel, object>>[] setColumns)