Exemplo n.º 1
0
        /// <summary>
        /// Сохранение записей с помощью пула.
        /// </summary>
        public static void WriteRecord
        (
            [NotNull] this IrbisConnectionPool pool,
            [NotNull] IrbisRecord record
        )
        {
            ManagedClient64 client = pool.AcquireConnection();

            client.WriteRecord(record, false, true);
            pool.ReleaseConnection(client);
        }
Exemplo n.º 2
0
        public static IrbisRecord ReadRecord
        (
            [NotNull] this IrbisConnectionPool pool,
            int mfn
        )
        {
            ManagedClient64 client = pool.AcquireConnection();
            IrbisRecord     result = client.ReadRecord(mfn);

            pool.ReleaseConnection(client);
            return(result);
        }
Exemplo n.º 3
0
        public static int[] Search
        (
            [NotNull] this IrbisConnectionPool pool,
            string format,
            params object[] args
        )
        {
            ManagedClient64 client = pool.AcquireConnection();

            int[] result = client.Search(format, args);
            pool.ReleaseConnection(client);
            return(result);
        }