< Summary

Class:Azure.Analytics.Synapse.Artifacts.Models.StoredProcedureParameter
Assembly:Azure.Analytics.Synapse.Artifacts
File(s):C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\StoredProcedureParameter.cs
C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\StoredProcedureParameter.Serialization.cs
Covered lines:0
Uncovered lines:26
Coverable lines:26
Total lines:83
Line coverage:0% (0 of 26)
Covered branches:0
Total branches:10
Branch coverage:0% (0 of 10)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Value()-0%100%
get_Type()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeStoredProcedureParameter(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\StoredProcedureParameter.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8namespace Azure.Analytics.Synapse.Artifacts.Models
 9{
 10    /// <summary> SQL stored procedure parameter. </summary>
 11    public partial class StoredProcedureParameter
 12    {
 13        /// <summary> Initializes a new instance of StoredProcedureParameter. </summary>
 014        public StoredProcedureParameter()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of StoredProcedureParameter. </summary>
 19        /// <param name="value"> Stored procedure parameter value. Type: string (or Expression with resultType string). 
 20        /// <param name="type"> Stored procedure parameter type. </param>
 021        internal StoredProcedureParameter(object value, StoredProcedureParameterType? type)
 22        {
 023            Value = value;
 024            Type = type;
 025        }
 26
 27        /// <summary> Stored procedure parameter value. Type: string (or Expression with resultType string). </summary>
 028        public object Value { get; set; }
 29        /// <summary> Stored procedure parameter type. </summary>
 030        public StoredProcedureParameterType? Type { get; set; }
 31    }
 32}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\StoredProcedureParameter.Serialization.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System.Text.Json;
 9using Azure.Core;
 10
 11namespace Azure.Analytics.Synapse.Artifacts.Models
 12{
 13    public partial class StoredProcedureParameter : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Optional.IsDefined(Value))
 19            {
 020                writer.WritePropertyName("value");
 021                writer.WriteObjectValue(Value);
 22            }
 023            if (Optional.IsDefined(Type))
 24            {
 025                writer.WritePropertyName("type");
 026                writer.WriteStringValue(Type.Value.ToString());
 27            }
 028            writer.WriteEndObject();
 029        }
 30
 31        internal static StoredProcedureParameter DeserializeStoredProcedureParameter(JsonElement element)
 32        {
 033            Optional<object> value = default;
 034            Optional<StoredProcedureParameterType> type = default;
 035            foreach (var property in element.EnumerateObject())
 36            {
 037                if (property.NameEquals("value"))
 38                {
 039                    value = property.Value.GetObject();
 040                    continue;
 41                }
 042                if (property.NameEquals("type"))
 43                {
 044                    type = new StoredProcedureParameterType(property.Value.GetString());
 45                    continue;
 46                }
 47            }
 048            return new StoredProcedureParameter(value.Value, Optional.ToNullable(type));
 49        }
 50    }
 51}