Class DbFunction
- Namespace
- Microsoft.EntityFrameworkCore.Metadata.Internal
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
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 class DbFunction : ConventionAnnotatable, IMutableDbFunction, IMutableAnnotatable, IConventionDbFunction, IConventionAnnotatable, IRuntimeDbFunction, IDbFunction, IReadOnlyDbFunction, IReadOnlyAnnotatable, IAnnotatable
- Inheritance
-
DbFunction
- Implements
-
IMutableAnnotatableIConventionAnnotatableIReadOnlyAnnotatableIAnnotatable
Constructors
DbFunction(MethodInfo, IMutableModel, ConfigurationSource)
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 DbFunction(MethodInfo methodInfo, IMutableModel model, ConfigurationSource configurationSource)
Parameters
methodInfo
MethodInfomodel
IMutableModelconfigurationSource
ConfigurationSource
DbFunction(string, Type, IEnumerable<(string Name, Type Type)>?, IMutableModel, ConfigurationSource)
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 DbFunction(string name, Type returnType, IEnumerable<(string Name, Type Type)>? parameters, IMutableModel model, ConfigurationSource configurationSource)
Parameters
name
stringreturnType
Typeparameters
IEnumerable<(string Name, Type Type)>model
IMutableModelconfigurationSource
ConfigurationSource
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.
public virtual InternalDbFunctionBuilder Builder { get; }
Property Value
DebugView
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 virtual DebugView DebugView { get; }
Property Value
- DebugView
IsAggregate
public virtual bool IsAggregate { get; }
Property Value
IsBuiltIn
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 virtual bool IsBuiltIn { get; set; }
Property Value
IsInModel
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 virtual bool IsInModel { get; }
Property Value
IsNullable
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 virtual bool IsNullable { get; set; }
Property Value
IsReadOnly
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 override bool IsReadOnly { get; }
Property Value
IsScalar
public virtual bool IsScalar { get; }
Property Value
MethodInfo
public virtual MethodInfo? MethodInfo { get; }
Property Value
Model
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 virtual IMutableModel Model { get; }
Property Value
- IMutableModel
ModelName
public virtual string ModelName { get; }
Property Value
Name
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 virtual string Name { get; set; }
Property Value
Parameters
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 virtual IReadOnlyList<DbFunctionParameter> Parameters { get; }
Property Value
ReturnType
public virtual Type ReturnType { get; }
Property Value
Schema
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 virtual string? Schema { get; set; }
Property Value
StoreType
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 virtual string? StoreType { get; set; }
Property Value
Translation
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 virtual Func<IReadOnlyList<SqlExpression>, SqlExpression>? Translation { get; set; }
Property Value
TypeMapping
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 virtual RelationalTypeMapping? TypeMapping { get; set; }
Property Value
Methods
AddDbFunction(IMutableModel, MethodInfo, ConfigurationSource)
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 static DbFunction AddDbFunction(IMutableModel model, MethodInfo methodInfo, ConfigurationSource configurationSource)
Parameters
model
IMutableModelmethodInfo
MethodInfoconfigurationSource
ConfigurationSource
Returns
AddDbFunction(IMutableModel, string, Type, ConfigurationSource)
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 static DbFunction AddDbFunction(IMutableModel model, string name, Type returnType, ConfigurationSource configurationSource)
Parameters
Returns
FindDbFunction(IReadOnlyModel, MethodInfo)
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 static IReadOnlyDbFunction? FindDbFunction(IReadOnlyModel model, MethodInfo methodInfo)
Parameters
model
IReadOnlyModelmethodInfo
MethodInfo
Returns
FindDbFunction(IReadOnlyModel, string)
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 static IReadOnlyDbFunction? FindDbFunction(IReadOnlyModel model, string name)
Parameters
model
IReadOnlyModelname
string
Returns
FindParameter(string)
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 virtual DbFunctionParameter? FindParameter(string name)
Parameters
name
string
Returns
GetConfigurationSource()
public virtual ConfigurationSource GetConfigurationSource()
Returns
- ConfigurationSource
GetDbFunctions(IReadOnlyModel)
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 static IEnumerable<IDbFunction> GetDbFunctions(IReadOnlyModel model)
Parameters
model
IReadOnlyModel
Returns
GetFunctionName(MethodInfo)
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 static string GetFunctionName(MethodInfo methodInfo)
Parameters
methodInfo
MethodInfo
Returns
GetIsBuiltInConfigurationSource()
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 virtual ConfigurationSource? GetIsBuiltInConfigurationSource()
Returns
- ConfigurationSource?
GetIsNullableConfigurationSource()
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 virtual ConfigurationSource? GetIsNullableConfigurationSource()
Returns
- ConfigurationSource?
GetNameConfigurationSource()
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 virtual ConfigurationSource? GetNameConfigurationSource()
Returns
- ConfigurationSource?
GetSchemaConfigurationSource()
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 virtual ConfigurationSource? GetSchemaConfigurationSource()
Returns
- ConfigurationSource?
GetStoreTypeConfigurationSource()
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 virtual ConfigurationSource? GetStoreTypeConfigurationSource()
Returns
- ConfigurationSource?
GetTranslationConfigurationSource()
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 virtual ConfigurationSource? GetTranslationConfigurationSource()
Returns
- ConfigurationSource?
GetTypeMappingConfigurationSource()
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 virtual ConfigurationSource? GetTypeMappingConfigurationSource()
Returns
- ConfigurationSource?
RemoveDbFunction(IMutableModel, MethodInfo)
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 static DbFunction? RemoveDbFunction(IMutableModel model, MethodInfo methodInfo)
Parameters
model
IMutableModelmethodInfo
MethodInfo
Returns
RemoveDbFunction(IMutableModel, string)
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 static DbFunction? RemoveDbFunction(IMutableModel model, string name)
Parameters
model
IMutableModelname
string
Returns
SetIsBuiltIn(bool, ConfigurationSource)
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 virtual bool SetIsBuiltIn(bool builtIn, ConfigurationSource configurationSource)
Parameters
builtIn
boolconfigurationSource
ConfigurationSource
Returns
SetIsNullable(bool, ConfigurationSource)
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 virtual bool SetIsNullable(bool nullable, ConfigurationSource configurationSource)
Parameters
nullable
boolconfigurationSource
ConfigurationSource
Returns
SetName(string?, ConfigurationSource?)
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 virtual string? SetName(string? name, ConfigurationSource? configurationSource)
Parameters
name
stringconfigurationSource
ConfigurationSource
Returns
SetRemovedFromModel()
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 virtual void SetRemovedFromModel()
SetSchema(string?, ConfigurationSource?)
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 virtual string? SetSchema(string? schema, ConfigurationSource? configurationSource)
Parameters
schema
stringconfigurationSource
ConfigurationSource
Returns
SetStoreType(string?, ConfigurationSource?)
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 virtual string? SetStoreType(string? storeType, ConfigurationSource? configurationSource)
Parameters
storeType
stringconfigurationSource
ConfigurationSource
Returns
SetTranslation(Func<IReadOnlyList<SqlExpression>, SqlExpression>?, ConfigurationSource)
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 virtual Func<IReadOnlyList<SqlExpression>, SqlExpression>? SetTranslation(Func<IReadOnlyList<SqlExpression>, SqlExpression>? translation, ConfigurationSource configurationSource)
Parameters
translation
Func<IReadOnlyList<SqlExpression>, SqlExpression>configurationSource
ConfigurationSource
Returns
SetTypeMapping(RelationalTypeMapping?, ConfigurationSource?)
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 virtual RelationalTypeMapping? SetTypeMapping(RelationalTypeMapping? typeMapping, ConfigurationSource? configurationSource)
Parameters
typeMapping
RelationalTypeMappingconfigurationSource
ConfigurationSource
Returns
ToString()
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 override string ToString()
Returns
UpdateConfigurationSource(ConfigurationSource)
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 virtual void UpdateConfigurationSource(ConfigurationSource configurationSource)
Parameters
configurationSource
ConfigurationSource