From 8b5f3eebb9f8d9bd55e922a809ffa3bd52e33401 Mon Sep 17 00:00:00 2001 From: vman Date: Fri, 9 Dec 2022 13:54:16 -0500 Subject: Sql essentials classes moved, secret loading updates --- VNLib.Plugins.Extensions.Data/SQL/SqlVariable.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'VNLib.Plugins.Extensions.Data/SQL/SqlVariable.cs') diff --git a/VNLib.Plugins.Extensions.Data/SQL/SqlVariable.cs b/VNLib.Plugins.Extensions.Data/SQL/SqlVariable.cs index d33854a..b18d27b 100644 --- a/VNLib.Plugins.Extensions.Data/SQL/SqlVariable.cs +++ b/VNLib.Plugins.Extensions.Data/SQL/SqlVariable.cs @@ -31,13 +31,13 @@ namespace VNLib.Plugins.Extensions.Data.SQL /// Property attribute that specifies the property is to be used for a given command variable /// [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] - public class SqlVariable : Attribute + public sealed class SqlVariableAttribute : Attribute { - public string VariableName { get; init; } - public DbType DataType { get; init; } - public ParameterDirection Direction { get; init; } - public int Size { get; init; } - public bool Nullable { get; init; } + public string VariableName { get; } + public DbType DataType { get; } + public ParameterDirection Direction { get; } + public int Size { get; } + public bool IsNullable { get; } /// /// Specifies the property to be used as an SQL variable /// @@ -46,13 +46,13 @@ namespace VNLib.Plugins.Extensions.Data.SQL /// Data direction during execution /// Column size /// Is this property allowed to be null - public SqlVariable(string variableName, DbType dataType, ParameterDirection direction, int size, bool isNullable) + public SqlVariableAttribute(string variableName, DbType dataType, ParameterDirection direction, int size, bool isNullable) { this.VariableName = variableName; this.DataType = dataType; this.Direction = direction; this.Size = size; - this.Nullable = isNullable; + this.IsNullable = isNullable; } } } -- cgit