38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace Sarand.Net.Standard.Base.Dbas
|
|
{
|
|
//=======================================================================
|
|
//[Serializable()]
|
|
public class DbDfnDatabase
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Data members.
|
|
private readonly List<DbDfnTable> tables = new List<DbDfnTable>();
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
public DbDfnDatabase () { }
|
|
//-------------------------------------------------------------------
|
|
// Tables.
|
|
public List<DbDfnTable> 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);
|
|
}
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|