mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add XML comments to public entities.
This commit is contained in:
@@ -36,10 +36,21 @@ using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Aaru.Database.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// USB vendor
|
||||
/// </summary>
|
||||
public class UsbVendor
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds an empty USB vendor
|
||||
/// </summary>
|
||||
public UsbVendor() {}
|
||||
|
||||
/// <summary>
|
||||
/// Builds a USB vendor with the specified parameters
|
||||
/// </summary>
|
||||
/// <param name="id">Vendor ID</param>
|
||||
/// <param name="vendor">Vendor name</param>
|
||||
public UsbVendor(ushort id, string vendor)
|
||||
{
|
||||
Id = id;
|
||||
@@ -47,12 +58,27 @@ namespace Aaru.Database.Models
|
||||
AddedWhen = ModifiedWhen = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Database ID
|
||||
/// </summary>
|
||||
[Key]
|
||||
public ushort Id { get; set; }
|
||||
/// <summary>
|
||||
/// Vendor name
|
||||
/// </summary>
|
||||
public string Vendor { get; set; }
|
||||
/// <summary>
|
||||
/// Date when model has been added to the database
|
||||
/// </summary>
|
||||
public DateTime AddedWhen { get; set; }
|
||||
/// <summary>
|
||||
/// Date when model was last modified
|
||||
/// </summary>
|
||||
public DateTime ModifiedWhen { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// List of products from this vendor
|
||||
/// </summary>
|
||||
public virtual ICollection<UsbProduct> Products { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user