kant2002 / SqlMarshal

Generates data access using stored procedures
Other
58 stars 6 forks source link

CloseAsync with CancellationToken #11

Closed harrison314 closed 1 year ago

harrison314 commented 1 year ago

If I use:

[SqlMarshal]
    private partial Task<List<AwailabeSourceSqlite>> TryGetNextSource([RawSql] string sql, CancellationToken cancellationToken);

    internal class AwailabeSourceSqlite
    {
        public int Id { get; set; }
        public string Name { get; set; }
    }

It will be in the generated code:

await reader.CloseAsync(cancellationToken).ConfigureAwait(false);

But CloseAsync nas zero parameters. Is is compilation error for System.Data.Sqlite.

kant2002 commented 1 year ago

Look for 0.4.4 version in Nuget store near you!