Пример #1
0
        public void UpdateDBProperties(DatabaseProperties p)
        {
            EnsureOpen();
            if (p == null)
            {
                throw new ArgumentNullException("p");
            }

            WriteRecord(p, true);
        }
Пример #2
0
        public DBProperties(VolumeDatabase db)
        {
            BuildGui();

            this.db = db;
            props	= db.GetDBProperties();

            entName.Text				= props.Name;
            tvDescription.Buffer.Text	= props.Description;
            entCreated.Text				= props.Created.ToString();
        }
Пример #3
0
        public DatabaseProperties GetDBProperties()
        {
            EnsureOpen();
            DatabaseProperties p      = new DatabaseProperties(this);
            IVolumeDBRecord    record = p;
            string             query  = string.Format("SELECT * FROM {0}", record.TableName);

            sql.ExecuteReader(query, delegate(IDataReader reader, IRecordData readerRecData) {
                reader.Read();
                record.SetRecordData(readerRecData);
                record.IsNew = false;
            });

            return(p);
        }