aboutsummaryrefslogtreecommitdiff
path: root/VNLib.Plugins.Extensions.Data/SQL/SqlVariable.cs
diff options
context:
space:
mode:
authorLibravatar vman <public@vaughnnugent.com>2022-12-09 13:54:16 -0500
committerLibravatar vman <public@vaughnnugent.com>2022-12-09 13:54:16 -0500
commit8b5f3eebb9f8d9bd55e922a809ffa3bd52e33401 (patch)
tree024fcdd2445b2fe37fc96d2870879d0f6aa5626f /VNLib.Plugins.Extensions.Data/SQL/SqlVariable.cs
parentc9d9e6d23ad7b6fdf25f30de9b4a84be23885e16 (diff)
Sql essentials classes moved, secret loading updates
Diffstat (limited to 'VNLib.Plugins.Extensions.Data/SQL/SqlVariable.cs')
-rw-r--r--VNLib.Plugins.Extensions.Data/SQL/SqlVariable.cs16
1 files changed, 8 insertions, 8 deletions
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
/// </summary>
[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; }
/// <summary>
/// Specifies the property to be used as an SQL variable
/// </summary>
@@ -46,13 +46,13 @@ namespace VNLib.Plugins.Extensions.Data.SQL
/// <param name="direction">Data direction during execution</param>
/// <param name="size">Column size</param>
/// <param name="isNullable">Is this property allowed to be null</param>
- 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;
}
}
}