public async Task When_checking_if_table_exists_aliased_models() { using (var conn = new SQLiteInMemoryConnection()) { (await conn.Exists <MyPerson>()).ShouldBeFalse(); await conn.ExecuteAsync(TableQuery); (await conn.Exists <MyPerson>()).ShouldBeTrue(); } }
public async Task When_checking_if_table_exists_overriding_model_table() { using (var conn = new SQLiteInMemoryConnection()) { (await conn.Exists("Person")).ShouldBeFalse(); await conn.ExecuteAsync(TableQuery); (await conn.Exists("Person")).ShouldBeTrue(); } }
public async Task When_checking_table_exists() { using (var conn = new SQLiteInMemoryConnection()) { (await conn.Exists <Person>()).ShouldBeFalse(); conn.State.ShouldBe(ConnectionState.Open); await conn.ExecuteAsync(TableQuery); (await conn.Exists <Person>()).ShouldBeTrue(); } }