Exemple #1
0
        /// <summary>
        /// Create client query.
        /// </summary>
        public virtual ClientQuery CreateQuery()
        {
            Log.Trace("AbstractCommand::CreateQuery");

            // TODO fix it!

            ClientQuery result = new ClientQuery(Connection)
            {
                Workstation   = Connection.Workstation,
                ClientID      = Connection.ClientID,
                CommandNumber = 1,
                UserLogin     = Connection.Username,
                UserPassword  = Connection.Password
            };
            IrbisConnection connection = Connection as IrbisConnection;

            if (!ReferenceEquals(connection, null))
            {
                result.CommandNumber = connection.IncrementCommandNumber();
            }

            return(result);
        }