Class DbFunctionParameterBuilder
- Namespace
- Microsoft.EntityFrameworkCore.Metadata.Builders
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
Provides a simple API for configuring a DbFunctionParameter.
Instances of this class are returned from methods when using the Microsoft.EntityFrameworkCore.ModelBuilder API and it is not designed to be directly constructed in your application code.
public class DbFunctionParameterBuilder : IInfrastructure<IConventionDbFunctionParameterBuilder>
- Inheritance
-
DbFunctionParameterBuilder
- Implements
-
IInfrastructure<IConventionDbFunctionParameterBuilder>
- Inherited Members
Constructors
DbFunctionParameterBuilder(IMutableDbFunctionParameter)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public DbFunctionParameterBuilder(IMutableDbFunctionParameter parameter)
Parameters
parameter
IMutableDbFunctionParameter
Properties
Metadata
The function parameter metadata that is being built.
public virtual IMutableDbFunctionParameter Metadata { get; }
Property Value
Methods
HasStoreType(string)
Sets the store type of the function parameter in the database.
public virtual DbFunctionParameterBuilder HasStoreType(string storeType)
Parameters
storeType
stringThe store type of the function parameter in the database.
Returns
- DbFunctionParameterBuilder
The same builder instance so that further configuration calls can be chained.
PropagatesNullability(bool)
Indicates whether parameter propagates nullability, meaning if it's value is null the database function itself returns null.
public virtual DbFunctionParameterBuilder PropagatesNullability(bool propagatesNullability = true)
Parameters
propagatesNullability
boolValue which indicates whether parameter propagates nullability.
Returns
- DbFunctionParameterBuilder
The same builder instance so that further configuration calls can be chained.