예제 #1
0
        public async Task CreateTable_NoDisposeErrorAsync([DataSources(false)] string context)
        {
            using var db = new TestDataConnection(context);
            await db.DropTableAsync <int>("TempTable", throwExceptionIfNotExists : false);

            var tempTable = await db.CreateTempTableAsync <IDTable>("TempTable");

            var table2 = db.GetTable <IDTable>().TableOptions(TableOptions.IsTemporary).TableName("TempTable");
            await table2.DropAsync();

            await tempTable.DisposeAsync();
        }