EFIngresProvider/EFIngresProviderServices.cs
/// <summary>
/// Creates a SqlParameter given a name, type, and direction
/// </summary>
Creates a SqlParameter given a name, type, and direction
Creates a SqlParameter given a name type and direction
internal static DbParameter CreateDbParameter(string name, TypeUsage type, ParameterMode mode, object value)
        {
            var result = new IngresParameter(name, value)
            {
                Direction = MetadataHelpers.ParameterModeToParameterDirection(mode),
                IngresType = GetIngresType(type),
                IsNullable = MetadataHelpers.IsNullable(type)
            };
            result.Size = GetParameterSize(type, mode != ParameterMode.In) ?? result.Size;
            return result;
        }
internal static DbParameter CreateDbParameter ( string name , TypeUsage type , ParameterMode mode , object value ) { var result = new IngresParameter ( name , value ) { Direction = MetadataHelpers . ParameterModeToParameterDirection ( mode ) , IngresType = GetIngresType ( type ) , IsNullable = MetadataHelpers . IsNullable ( type ) } ; result . Size = GetParameterSize ( type , mode != ParameterMode . In ) ?? result . Size ; return result ; }
Creates a SqlParameter given a name, type, and direction
Creates a SqlParameter given a name type and direction
name
string
type
TypeUsage
mode
ParameterMode
value
object