Click or drag to resize

ITableOperationsGetInterpretedFieldValue Method

Gets the interpreted value for the specified field, encrypting or returning any intermediate IDbDataParameter value as needed.

Namespace: GSF.Data.Model
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
Object GetInterpretedFieldValue(
	string fieldName,
	Object value
)
View Source

Parameters

fieldName  String
Field name to retrieve.
value  Object
Field value to use.

Return Value

Object
Interpreted value for the specified field, encrypting or returning any intermediate IDbDataParameter value as needed.
Remarks

This function will need to be used when calling overloads that take a RecordRestriction or composite format filter expression where the EncryptDataAttribute or FieldDataTypeAttribute have been modeled on a field referenced by one of the RecordRestriction parameters. Since the record restrictions are used with a free-form expression, the TableOperationsT class cannot be aware of the fields accessed in the expression without attempting to parse the expression which would be time consuming and error prone; as a result, users will need to be aware to call this function when using record restriction that references fields that are either marked for encryption or use a specific field data-type attribute.

If a RecordRestriction parameter references a field that is modeled with an EncryptDataAttribute, this function will need to be called, replacing the restriction parameter with the returned value, so that the field data value will be properly encrypted prior to executing the database function.

If a RecordRestriction parameter references a field that is modeled with a FieldDataTypeAttribute, this function will need to be called, replacing the restriction parameter with the returned value, so that the field data type will be properly set prior to executing the database function.

See Also