diff --git a/GBase/GBaseTable.cs b/GBase/GBaseTable.cs new file mode 100644 index 0000000..b0c347c --- /dev/null +++ b/GBase/GBaseTable.cs @@ -0,0 +1,61 @@ +// Author: Gockner, Simon +// Created: 2020-01-27 +// Copyright(c) 2020 SimonG. All Rights Reserved. + +using System; +using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; +using GBase.Interfaces; + +namespace GBase +{ + /// + /// A table + /// + public class GBaseTable : IGBaseTable + { + /// + /// A table + /// + public GBaseTable() + { + Entries = new List(); + } + + /// + /// The name of this + /// + public string Name { get; private set; } + + /// + /// The s of this + /// + public List Entries { get; } + + + /// + /// Initialize this + /// + /// The name of this + /// A to cancel the asynchronous operation + /// True if successful, false if not + public async Task Init(string name, CancellationToken cancellationToken) + { + Name = name; + + //TODO: Init Entries list depending on GBaseEntryAttributes set for this GBaseTable + + return true; + } + + /// + /// The method + /// + /// A to await + public async ValueTask DisposeAsync() + { + throw new System.NotImplementedException(); + } + } +} \ No newline at end of file