Class DbFunctionBuilderBase
- Namespace
- Microsoft.EntityFrameworkCore.Metadata.Builders
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
Provides a simple API for configuring a IMutableDbFunction.
public abstract class DbFunctionBuilderBase : IInfrastructure<IConventionDbFunctionBuilder>
- Inheritance
-
DbFunctionBuilderBase
- Implements
-
IInfrastructure<IConventionDbFunctionBuilder>
- Derived
- Inherited Members
Constructors
DbFunctionBuilderBase(IMutableDbFunction)
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.
protected DbFunctionBuilderBase(IMutableDbFunction function)
Parameters
function
IMutableDbFunction
Properties
Builder
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.
protected virtual InternalDbFunctionBuilder Builder { get; }
Property Value
Metadata
The function being configured.
public virtual IMutableDbFunction Metadata { get; }
Property Value
Methods
HasName(string)
Sets the name of the database function.
public virtual DbFunctionBuilderBase HasName(string name)
Parameters
name
stringThe name of the function in the database.
Returns
- DbFunctionBuilderBase
The same builder instance so that multiple configuration calls can be chained.
HasParameter(string)
Returns an object that can be used to configure a parameter with the given name. If no parameter with the given name exists, then a new parameter will be added.
public virtual DbFunctionParameterBuilder HasParameter(string name)
Parameters
name
stringThe parameter name.
Returns
- DbFunctionParameterBuilder
The builder to use for further parameter configuration.
HasSchema(string)
Sets the schema of the database function.
public virtual DbFunctionBuilderBase HasSchema(string schema)
Parameters
schema
stringThe schema of the function in the database.
Returns
- DbFunctionBuilderBase
The same builder instance so that multiple configuration calls can be chained.
IsBuiltIn(bool)
Marks whether the database function is built-in.
public virtual DbFunctionBuilderBase IsBuiltIn(bool builtIn = true)
Parameters
builtIn
boolThe value indicating whether the database function is built-in.
Returns
- DbFunctionBuilderBase
The same builder instance so that multiple configuration calls can be chained.