Click or drag to resize

ProjectionLiteral Class

Simple class which is used to emit a literal value into the projection. It subclasses dbfunctioncall as that's the class to use to emit a custom SQL fragment into the query, however we need to specialize it to avoid the () suffix for a function call.
Inheritance Hierarchy

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.5.0.0 (5.5.18.1019)
Syntax
public class ProjectionLiteral : DbFunctionCall

The ProjectionLiteral type exposes the following members.

Constructors
  NameDescription
Public methodProjectionLiteral
Initializes a new instance of the ProjectionLiteral class.
Top
Properties
  NameDescription
Public propertyAliasToUse
Gets or sets the alias to use. This is the alias of the element it represents when that element is a nested query. Null otherwise.
Public propertyCatalogName
Gets or sets the name of the catalog the function is located in. Can be ignored on databases which don't support catalogs.
(Inherited from DbFunctionCall.)
Public propertyDatabaseParameters
The list of database parameters created when the DbFunctionCall was translated to text usable in a query. Only valid after a succesful call to ToQueryText
(Inherited from DbFunctionCall.)
Public propertyDatabaseSpecificCreator
Object which will be used to create valid parameter objects, field names, including prefix/postfix characters, and conversion routines, and field names, including prefix/postfix characters. Uses the strategy pattern so the generic code can work with more than one target database.
(Inherited from DbFunctionCall.)
Public propertyFieldPersistenceInfos
Per field in FunctionParameters, this list contains the fieldPersistenceinfo object. If a parameter in FunctionParameters is not an IEntityFieldCore implementing object, the value for that parameter is null/Nothing.
(Inherited from DbFunctionCall.)
Public propertyFunctionName
Gets or sets the name of the function to call or pre-formatted function call string. This is without catalog or schema name.
(Inherited from DbFunctionCall.)
Public propertyFunctionParameters
Gets the function parameters to pass to the function. You can pass fields and values to the function as parameters. A field can have a function call and/or expression applied to make nested function calls possible.
(Inherited from DbFunctionCall.)
Public propertySchemaName
Gets or sets the name of the schema the function is located in. Can be ignored on databases which don't support schemas.
(Inherited from DbFunctionCall.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToQueryText
Retrieves a ready to use text representation of the contained function call
(Inherited from DbFunctionCall.)
Public methodToQueryText(Boolean)
Retrieves a ready to use text representation of the contained function call
(Overrides DbFunctionCallToQueryText(Boolean).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIXmlSerializableGetSchema
This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return null (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the XmlSchemaProviderAttribute to the class.
(Inherited from DbFunctionCall.)
Explicit interface implementationPrivate methodIXmlSerializableReadXml
Generates an object from its XML representation.
(Inherited from DbFunctionCall.)
Explicit interface implementationPrivate methodIXmlSerializableWriteXml
Converts an object into its XML representation.
(Inherited from DbFunctionCall.)
Explicit interface implementationPrivate propertyIExpressionDatabaseSpecificCreator
Object which will be used to create valid parameter objects, field names, including prefix/postfix characters, and conversion routines, and field names, including prefix/postfix characters. Uses the strategy pattern so the generic code can work with more than one target database.
(Inherited from DbFunctionCall.)
Explicit interface implementationPrivate propertyIExpressionLeftOperand
Gets the left expression operand. Set by the constructor used.
(Inherited from DbFunctionCall.)
Explicit interface implementationPrivate propertyIExpressionOperator
Gets the operator of the expression. Not valid (ExOp.None) if RightOperand is null. Set by the constructor used.
(Inherited from DbFunctionCall.)
Explicit interface implementationPrivate propertyIExpressionParameters
The list of parameters created when the Expression was translated to text usable in a query. Only valid after a succesful call to ToQueryText
(Inherited from DbFunctionCall.)
Explicit interface implementationPrivate methodIExpressionReadXml
Deserializes the data on the xml reader into an expression instance
(Inherited from DbFunctionCall.)
Explicit interface implementationPrivate propertyIExpressionRightOperand
Gets the right expression operand. Set by the constructor used. Can be null
(Inherited from DbFunctionCall.)
Explicit interface implementationPrivate methodIExpressionToQueryText
Retrieves a ready to use text representation of the contained function call
(Inherited from DbFunctionCall.)
Explicit interface implementationPrivate methodIExpressionToQueryText(Boolean)
Retrieves a ready to use text representation of the contained function call
(Inherited from DbFunctionCall.)
Explicit interface implementationPrivate methodIExpressionWriteXml
Serializes object as xml to the writer specified.
(Inherited from DbFunctionCall.)
Top
See Also