Add XML documentation.

This commit is contained in:
2018-04-12 11:50:02 +01:00
parent c11bb150c5
commit 20ec27eecb
40 changed files with 967 additions and 92 deletions

View File

@@ -27,6 +27,7 @@
// ----------------------------------------------------------------------------
// Copyright © 2003-2018 Natalia Portillo
*******************************************************************************/
using System;
using System.Collections.Generic;
using System.Data;
@@ -37,6 +38,11 @@ namespace Cicm.Database
{
public partial class Operations
{
/// <summary>
/// Gets all forbidden accesses
/// </summary>
/// <param name="entries">All forbidden accesses</param>
/// <returns><c>true</c> if <see cref="entries" /> is correct, <c>false</c> otherwise</returns>
public bool GetForbiddens(out List<Forbidden> entries)
{
#if DEBUG
@@ -67,6 +73,13 @@ namespace Cicm.Database
}
}
/// <summary>
/// Gets the specified number of forbidden accesses since the specified start
/// </summary>
/// <param name="entries">List of forbidden accesses</param>
/// <param name="start">Start of query</param>
/// <param name="count">How many entries to retrieve</param>
/// <returns><c>true</c> if <see cref="entries" /> is correct, <c>false</c> otherwise</returns>
public bool GetForbiddens(out List<Forbidden> entries, ulong start, ulong count)
{
#if DEBUG
@@ -97,6 +110,11 @@ namespace Cicm.Database
}
}
/// <summary>
/// Gets forbidden entry by specified id
/// </summary>
/// <param name="id">Id</param>
/// <returns>Forbidden entry with specified id, <c>null</c> if not found or error</returns>
public Forbidden GetForbidden(int id)
{
#if DEBUG
@@ -126,6 +144,10 @@ namespace Cicm.Database
}
}
/// <summary>
/// Counts the number of Forbidden accesses in the database
/// </summary>
/// <returns>Entries in database</returns>
public long CountForbiddens()
{
#if DEBUG
@@ -140,6 +162,12 @@ namespace Cicm.Database
catch { return 0; }
}
/// <summary>
/// Adds a new forbidden to the database
/// </summary>
/// <param name="entry">Entry to add</param>
/// <param name="id">ID of added entry</param>
/// <returns><c>true</c> if added correctly, <c>false</c> otherwise</returns>
public bool AddForbidden(Forbidden entry, out long id)
{
#if DEBUG
@@ -168,6 +196,11 @@ namespace Cicm.Database
return true;
}
/// <summary>
/// Updated a forbidden access in the database
/// </summary>
/// <param name="entry">Updated entry</param>
/// <returns><c>true</c> if updated correctly, <c>false</c> otherwise</returns>
public bool UpdateForbidden(Forbidden entry)
{
#if DEBUG
@@ -190,6 +223,11 @@ namespace Cicm.Database
return true;
}
/// <summary>
/// Removes a forbidden access from the database
/// </summary>
/// <param name="id">ID of entry to remove</param>
/// <returns><c>true</c> if removed correctly, <c>false</c> otherwise</returns>
public bool RemoveForbidden(long id)
{
#if DEBUG