Z.Expressions.SqlServer.Eval.SQLNET.GetValue C# (CSharp) Method

GetValue() public method

Gets the value associated with the specified key.
Throws an exception if no value is associated with the specified key.
public GetValue ( string key ) : object
key string The key of the value to get.
return object
        public object GetValue(string key)
        {
            object value;

            if (Item.ParameterValues.TryGetValue(key, out value))
            {
                return value;
            }

            throw new Exception(string.Format(ExceptionMessage.Unexpected_ParameterKeyNotFound, key));
        }

Usage Example

Ejemplo n.º 1
0
        /// <summary>Add or update a SQLNET value associated with the specified key.</summary>
        /// <param name="key">The key of the value to add or update.</param>
        /// <param name="value">The SQLNET value to add or update associated with the specified key.</param>
        /// <returns>A fluent SQLNET object.</returns>
        public SQLNET ValueSQLNET(SqlString key, SQLNET value)
        {
            var internalValue = value.GetValue(InternalValueName);

            return(InternalValue(key, internalValue.GetType(), internalValue));
        }
All Usage Examples Of Z.Expressions.SqlServer.Eval.SQLNET::GetValue
SQLNET