Skip to content

Queryable Class

Allows any Database instance to be converted into a queryable database.

MethodDescription
AsQueryable(db)Converts any Database instance into a queryable database.
WixToolset.Dtf.WindowsInstaller.Linq.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

Converts any Database instance into a queryable database.

public static QDatabase AsQueryable(
WixToolset.Dtf.WindowsInstaller.Database db
)
ParameterTypeDescription
dbWixToolset.Dtf.WindowsInstaller.Database

QDatabase Queryable database instance that operates on the same MSI handle.

This extension method is meant for convenient on-the-fly conversion. If the existing database instance already happens to be a QDatabase, then it is returned unchanged. Otherwise since the new database carries the same MSI handle, only one of the instances needs to be closed, not both.