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 disk formats
/// </summary>
/// <param name="entries">All disk formats</param>
/// <returns><c>true</c> if <see cref="entries" /> is correct, <c>false</c> otherwise</returns>
public bool GetDiskFormats(out List<DiskFormat> entries)
{
#if DEBUG
@@ -67,6 +73,13 @@ namespace Cicm.Database
}
}
/// <summary>
/// Gets the specified number of disk formats since the specified start
/// </summary>
/// <param name="entries">List of disk formats</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 GetDiskFormats(out List<DiskFormat> entries, ulong start, ulong count)
{
#if DEBUG
@@ -97,6 +110,11 @@ namespace Cicm.Database
}
}
/// <summary>
/// Gets disk format by specified id
/// </summary>
/// <param name="id">Id</param>
/// <returns>Disk format with specified id, <c>null</c> if not found or error</returns>
public DiskFormat GetDiskFormat(int id)
{
#if DEBUG
@@ -126,6 +144,10 @@ namespace Cicm.Database
}
}
/// <summary>
/// Counts the number of disk formats in the database
/// </summary>
/// <returns>Entries in database</returns>
public long CountDiskFormats()
{
#if DEBUG
@@ -140,6 +162,12 @@ namespace Cicm.Database
catch { return 0; }
}
/// <summary>
/// Adds a new disk format 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 AddDiskFormat(DiskFormat entry, out long id)
{
#if DEBUG
@@ -167,6 +195,11 @@ namespace Cicm.Database
return true;
}
/// <summary>
/// Updated a disk format in the database
/// </summary>
/// <param name="entry">Updated entry</param>
/// <returns><c>true</c> if updated correctly, <c>false</c> otherwise</returns>
public bool UpdateDiskFormat(DiskFormat entry)
{
#if DEBUG
@@ -188,6 +221,11 @@ namespace Cicm.Database
return true;
}
/// <summary>
/// Removes a disk format 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 RemoveDiskFormat(long id)
{
#if DEBUG