Files
wehub-resource-sync b957a53def
CodeQL / Analyze (csharp) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 13:21:23 +08:00

40 lines
1.1 KiB
C#

// Copyright (c) Microsoft. All rights reserved.
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace StructuredDataPlugin;
/// <summary>
/// Represents a product entity in the database.
/// </summary>
public sealed class Product
{
/// <summary>
/// The unique identifier for the product.
/// </summary>
[Description("The unique identifier for the product.")]
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public Guid? Id { get; set; }
/// <summary>
/// The description of the product.
/// </summary>
[Description("The name of the product.")]
public string? Name { get; set; }
/// <summary>
/// The price of the product.
/// </summary>
[Description("The price of the product in USD.")]
public decimal? Price { get; set; }
/// <summary>
/// The date the product was created.
/// </summary>
[Description("The date the product was created")]
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
public DateTime? DateCreated { get; set; }
}