using System.Collections.Generic; namespace Sarand.Net.Standard.Base.Dbas { //======================================================================= //[Serializable()] public class DbDfnDatabase { //------------------------------------------------------------------- // Data members. private readonly List tables = new List(); //------------------------------------------------------------------- // Construction. public DbDfnDatabase () { } //------------------------------------------------------------------- // Tables. public List Tables { get { return tables; } set { tables.Clear(); tables.AddRange(value); } } public bool HasTables () { return (tables != null && tables.Count > 0); } public void CearTables () { tables.Clear(); } public void AddTable (DbDfnTable table) { tables.Add(table); } //------------------------------------------------------------------- } //======================================================================= }