- add settings

- add name of database
pull/26/head
Simon Gockner 6 years ago
parent 246536932a
commit b11fd1fef7
  1. 14
      GBase/Interfaces/IGBase.cs

@ -6,6 +6,7 @@ using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using GBase.Interfaces.Settings;
namespace GBase.Interfaces
{
@ -14,6 +15,16 @@ namespace GBase.Interfaces
/// </summary>
public interface IGBase : IAsyncDisposable
{
/// <summary>
/// The name of this <see cref="IGBase"/>
/// </summary>
string Name { get; }
/// <summary>
/// The settings of this <see cref="IGBase"/>
/// </summary>
IGBaseSettings Settings { get; }
/// <summary>
/// The <see cref="IGBaseTable"/>s of this <see cref="IGBase"/>
/// </summary>
@ -23,9 +34,10 @@ namespace GBase.Interfaces
/// <summary>
/// Initialize this <see cref="IGBase"/>
/// </summary>
/// <param name="name">The name of this <see cref="IGBase"/></param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to cancel the asynchronous operation</param>
/// <returns>True if successful, false if not</returns>
Task<bool> Init(CancellationToken cancellationToken);
Task<bool> Init(string name, CancellationToken cancellationToken);
/// <summary>
/// Add a given <see cref="IGBaseTable"/> to this <see cref="IGBase"/>

Loading…
Cancel
Save