internal static async Task <long> InsertIntoSelectAsync <T>(this IDbCommand dbCmd, ISqlExpression query, Action <IDbCommand> commandFilter, CancellationToken token) =>
 OrmLiteReadCommandExtensions.ToLong(await dbCmd.InsertIntoSelectInternal <T>(query, commandFilter).ExecNonQueryAsync(token: token));
Example #2
0
        public static async Task <long> LongScalarAsync(this IDbCommand dbCmd, CancellationToken token)
        {
            var ret = await dbCmd.GetDialectProvider().ExecuteScalarAsync(dbCmd, token).ConfigAwait();

            return(OrmLiteReadCommandExtensions.ToLong(ret));
        }