/
dev-npgsql
/
npgsql
Обзор
Документация
Войти
/
dev-npgsql
/
npgsql
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
v4.1.15
src/Npgsql/INpgsqlDatabaseInfoFactory.cs
23 строки
1 KB
Shay Rojansky
Convert codebase to use C# 8 nullability
05 май 2019, 21:55
05 май 2019, 21:55
f2dd3f7
Код
Авторство
О чём код?
using System.Threading.Tasks; using Npgsql.Util; namespace Npgsql { /// <summary> /// A factory which get generate instances of <see cref="NpgsqlDatabaseInfo"/>, which describe a database /// and the types it contains. When first connecting to a database, Npgsql will attempt to load information /// about it via this factory. /// </summary> public interface INpgsqlDatabaseInfoFactory { /// <summary> /// Given a connection, loads all necessary information about the connected database, e.g. its types. /// A factory should only handle the exact database type it was meant for, and return null otherwise. /// </summary> /// <returns> /// An object describing the database to which <paramref name="conn"/> is connected, or null if the /// database isn't of the correct type and isn't handled by this factory. /// </returns> Task<NpgsqlDatabaseInfo?> Load(NpgsqlConnection conn, NpgsqlTimeout timeout, bool async); } }