Interface IMutableDbFunction
- Namespace
- Microsoft.EntityFrameworkCore.Metadata
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
Represents a relational database function in an model in the form that can be mutated while the model is being built.
public interface IMutableDbFunction : IReadOnlyDbFunction, IReadOnlyAnnotatable, IMutableAnnotatable
- Inherited Members
Remarks
See Database functions for more information and examples.
Properties
IsBuiltIn
Gets or sets the value indicating whether the database function is built-in or not.
bool IsBuiltIn { get; set; }
Property Value
IsNullable
Gets or sets the value indicating whether the database function can return null value or not.
bool IsNullable { get; set; }
Property Value
Model
Gets the model in which this function is defined.
IMutableModel Model { get; }
Property Value
- IMutableModel
Name
Gets or sets the name of the function in the database.
string Name { get; set; }
Property Value
Parameters
Gets the parameters for this function
IReadOnlyList<IMutableDbFunctionParameter> Parameters { get; }
Property Value
Schema
Gets or sets the schema of the function in the database.
string? Schema { get; set; }
Property Value
StoreType
Gets or sets the store type of the function in the database.
string? StoreType { get; set; }
Property Value
Translation
Gets or sets the translation callback for performing custom translation of the method call into a SQL expression fragment.
Func<IReadOnlyList<SqlExpression>, SqlExpression>? Translation { get; set; }
Property Value
TypeMapping
Gets or sets the type mapping of the function in the database.
RelationalTypeMapping? TypeMapping { get; set; }