public void UpdateDBProperties(DatabaseProperties p) { EnsureOpen(); if (p == null) { throw new ArgumentNullException("p"); } WriteRecord(p, true); }
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(); }
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); }