Files
sql-utilities/src/Strata.SqlTools.EFCore/Models/QueryParameterEntity.cs
T

39 lines
1.2 KiB
C#

namespace Strata.SqlTools.EFCore.Models;
/// <summary>
/// Represents a query parameter entity for use with Entity Framework Core.
/// Stores query parameter names and their values with type information.
/// </summary>
public class QueryParameterEntity
{
/// <summary>
/// Gets or sets the unique identifier for this parameter.
/// </summary>
public int Id { get; set; }
/// <summary>
/// Gets or sets the identifier of the parent query breakdown entity.
/// </summary>
public int QueryBreakdownEntityId { get; set; }
/// <summary>
/// Gets or sets the parameter name (e.g., "@ParameterName" or "ParameterName").
/// </summary>
public string ParameterName { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the parameter value as a string representation.
/// </summary>
public string? ParameterValue { get; set; }
/// <summary>
/// Gets or sets the CLR type name of the parameter value for deserialization.
/// </summary>
public string? ParameterTypeName { get; set; }
/// <summary>
/// Navigation property to the parent QueryBreakdownEntity.
/// </summary>
public virtual QueryBreakdownEntity? QueryBreakdownEntity { get; set; }
}