Method Properties

Entity Framework method has the following properties.

Code Generation

Access

Denotes the access level. It can take the Public, Protected, Internal, Private, or ProtectedInternal value.

Attributes

Attributes of the object.

Documentation

Long Description

Detailed description for the method.

Summary

Brief description for the method.

Inheritance Modifier

Method inheritance modifier. The Inheritance Modifier property can take the None, New, NewVirtual, Override, or Virtual value.

None

The default value. No inheritance modification is performed.

New

Specifies that the derived base class method with this name is explicitly hidden.

NewVirtual

Specifies that the derived base class method with this signature is explicitly hidden, and this method of this class can be overridden in the derived class.

Override

Specifies that the method overrides the one, derived from the base class.

Virtual

Specifies that the method can be overridden in the derived class.

SealedOverride

Specifies that overriding the virtual method is forbidden for the subclass.

Method Signature

Denotes the method signature.

General

Collection Result

Specifies whether the method returns an IQueriable of the type, specified in the Return Type property, or a single object of this type. Available only for methods of Method Kind equal to ModelDefinedFunction.

Defining Expression

The Entity SQL query, the method is mapped to. Available only for methods of Method Kind equal to ModelDefinedFunction.

Method Kind

The kind of the method.

ModelDefinedFunction

Such methods are mapped to Entity SQL queries instead of stored procedures.

FunctionImport

Methods mapped to stored procedures.

Name

Denotes the name of the method.

Parameters

Denotes the collection of method parameters.

Return Type

Denotes the return type of the method.

Stored Procedure

Specifies the database stored procedure name.

Aggregate

Indicates if the stored procedure is aggregate (returns a single value, calculated from values in a column). Can accept the following values: True or False.

Built In

This property should be set to True for database server built-in functions. Can accept the following values: True or False.

Command Text

The Command Text of the stored procedure that contains DB specific SQL.

Composable

Gets or sets whether the method is mapped to a stored function or to a stored procedure. Can accept the following values: True or False.

Concealed Function

Set this property to True to hide the function return type and make Entity Framework process this function as a procedure. Can accept the following values: True or False.

Documentation

Long Description

Detailed description for the method.

Summary

Brief description for the method.

Name

Specifies the name of the stored procedure.

Niladic

Indicates if the stored procedure is called without brackets and does not accept parameters. Can accept the following values: True or False.

Parameter Semantics

Defines the type semantics that is used to resolve the function overloads. Acceptable values are:

AllowImplicitConversion

Implicit conversion between the given and the formal argument types will be performed, if necessary. Default value.

AllowImplicitPromotion

Type promotion between the given and the formal argument types will be performed, if necessary.

ExactMatchOnly

Argument types must be equivalent.

Result Set Parameter Name

Defines the name of the parameter that returns the result set.

Return Type

Specifies the return type of the procedure (for stored functions). Acceptable values are: bigint, binary, bit, char, date, datetime, datetime2, datetimeoffset, decimal, float, geography, geometry, image, int, money, nchar, ntext, numeric, nvarchar, nvarchar(max), real, rowversion, smalldatetime, smallint, smallmoney, text, time, timestamp, tinyint, uniqueidentifier, varbinary, varbinary(max), varchar, varchar(max), xml.

Schema

The source of the stored procedure.

Stored Procedure Name

The name of the stored procedure in the database. For the Oracle package procedure, it contains the package name: "<package name>.<procedure name>".

ExpandedToggleIcon        See Also


Send feedback on this topic

© 2008 - 2024 Devart. All rights reserved.