public async Task <T> InsertAsync <T>(string query, T model) where T : IIdentifier { var editedQuery = SQLQueryBuilder.BuildInsertQuery(query); using (var connection = _connectionFactory.GetOpenedConnection()) { model.TransactionId = await connection.QuerySingleAsync <long>(editedQuery, model); return(model); } }