Beispiel #1
0
        /// <summary>Connects to the specified database and tablename.</summary>
        /// <param name="database">Database to connect to.</param>
        /// <param name="flags">Flags used to connect to the table.</param>
        /// <param name="layout">The table layout.</param>
        /// <returns>Returns a new <see cref="PgSqlTable" /> instance.</returns>
        public static PgSqlTable Connect(PgSqlDatabase database, TableFlags flags, RowLayout layout)
        {
            var table = new PgSqlTable();

            table.Connect((IDatabase)database, flags, layout);
            return(table);
        }
Beispiel #2
0
        /// <summary>Connects to the specified database and tablename.</summary>
        /// <param name="database">Database to connect to.</param>
        /// <param name="flags">Flags used to connect to the table.</param>
        /// <param name="tableName">The table to connect to.</param>
        /// <returns>Returns a new <see cref="PgSqlTable" /> instance.</returns>
        public static PgSqlTable Connect(PgSqlDatabase database, TableFlags flags, string tableName)
        {
            var table = new PgSqlTable();

            table.Initialize(database, flags, tableName);
            return(table);
        }