Example #1
0
 /// <summary>
 ///     Inserts an entity and returns true if successful.
 /// </summary>
 /// <typeparam name="T">The type of entity to insert.</typeparam>
 /// <param name="entityToInsert">The Entity to insert.</param>
 /// <returns>
 ///     True if the record is inserted.
 /// </returns>
 public async Task <bool> InsertAsync <T>(T entityToInsert) where T : class => await ExecuteInternalAsync(() =>
                                                                                                          SharedConnection.InsertAsync(entityToInsert, _transaction, OneTimeCommandTimeout ?? CommandTimeout));