A database based on .net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.5 KiB

// Author: Gockner, Simon
// Created: 2020-02-11
// Copyright(c) 2020 SimonG. All Rights Reserved.
using GBase.Api.Communication;
using GBase.Api.Services;
namespace GBase.Client.Services
{
/// <summary>
/// <see cref="Service{TService}"/> for the IGBaseTable
/// </summary>
public class GBaseTableService : Service<IGBaseTableService>, IGBaseTableService
{
/// <summary>
/// <see cref="Service{TService}"/> for the IGBaseTable
/// </summary>
/// <param name="serverProtocol">The <see cref="ServerProtocol"/></param>
/// <param name="endpoint">The endpoint for the GBaseTable</param>
public GBaseTableService(ServerProtocol serverProtocol, string endpoint)
: base(serverProtocol, endpoint)
{
}
/// <summary>
/// Add a column to the GBaseTable
/// </summary>
/// <returns>True if successful, false if not</returns>
public bool AddColumn()
{
IGBaseTableService channel = OpenChannel();
bool ret = channel.AddColumn();
CloseChannel(channel);
return ret;
}
/// <summary>
/// Remove a column from the GBaseTable
/// </summary>
/// <returns>True if successful, false if not</returns>
public bool RemoveColumn()
{
IGBaseTableService channel = OpenChannel();
bool ret = channel.RemoveColumn();
CloseChannel(channel);
return ret;
}
}
}