Esempio n. 1
0
        public void CreateTable_NoDisposeError([DataSources(false)] string context)
        {
            using var db = new TestDataConnection(context);
            db.DropTable <int>("TempTable", throwExceptionIfNotExists: false);

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

            table2.Drop();
            tempTable.Dispose();
        }