Click or drag to resize

FieldUtilities Class

Various field related routines
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.ORMSupportClassesFieldUtilities

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax
public class FieldUtilities

The FieldUtilities type exposes the following members.

Constructors
  NameDescription
Public methodFieldUtilities
Initializes a new instance of the FieldUtilities class
Top
Methods
  NameDescription
Public methodStatic memberCalculateHashCodeForValue(Object)
Calculates the hashcode for value passed in. If the value is null, the hashcode of DBNull.Value is used. If the value is an array, the hashcode is calculated from the individual values: if the length is larger than 65535, or not a byte array, each value's hashcode is xorred with the previous one. If the value is a byte array and the length is equal or smaller than 65535, all values are added, multiplied with the index.
Public methodStatic memberCalculateHashCodeForValue(Object, Boolean)
Calculates the hashcode for value passed in. If the value is null, the hashcode of DBNull.Value is used. If the value is an array, the hashcode is calculated from the individual values: if the length is larger than 65535, or not a byte array, each value's hashcode is xorred with the previous one up to 65535 values. If the value is a byte array and the length is equal or smaller than 65535, all values are added, multiplied with the index. If the value is a string, the invariantculture hashcode is retrieved if the length is smaller than 65535. If the length is 65535 or higher, the string's hashcode is retrieved using the normal GetHashCode method.
Public methodStatic memberCheckArraysAreEqual
Performs a per-value compare on the arrays passed in and returns true if the arrays are of the same length and contain the same values.
Public methodStatic memberCheckPrecision
Checks the precision of the value passed in as string. Assumes value is numeric.
Public methodStatic memberCheckPrecisionAndScale
Checks the precision and scale of the value passed in as string. Assumes value is numeric.
Public methodStatic memberCreateArtificialObjectAlias
Creates the artificial object alias for a field which is in the entity with the name specified. THe alias is used to make it possible to join a supertype multiple times if fields from different subtypes are in the resultset. The alias has the format LPAA_actualContainingObjectName. Example: LPAA_CustomerEntity
Public methodStatic memberCreateDefaultValueForType
Creates the default value for the type specified
Public methodStatic memberCreateFullTypeName
Creates a full type name, of the format: Type.Fullname, assembly name. If the assembly is signed, the full assembly name is added, otherwise just the assembly name, not the version, public key token or culture.
Public methodStatic memberCreateRawDataProjectors
Creates the plain data projectors for hierarchical fetches
Public methodStatic memberDetermineIfFieldShouldBeSet
Determines if the field should be set to the value passed in.
Public methodStatic memberDetermineNumberOfPkFields
Determines the number of pk fields for the set of PK fields passed in. Normally this is the # of entries in the PK field collection, however in the case of a subtype of a targetperentity, all PK fields of the supertypes are also present in this collection and therefore this routine has to determine how many of these fields are really there.
Public methodStatic memberDetermineRealFullTypeName(Type)
Determines the name of the real full type of the type passed in, which can be a generic type. If so, the generic type parameter will be used.
Public methodStatic memberDetermineRealFullTypeName(Type, Boolean)
Determines the name of the real full type of the type passed in, which can be a generic type. If so, the generic type parameter will be used.
Public methodStatic memberDetermineRealType
Determines the real type of the passed in type. It will unwrap nullable types if unWrapNullableType is true.
Public methodStatic memberDetermineValueToSet
Determines the value to set for the field specified.
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 methodStatic memberGetEntityFieldPropertyDescriptors
Gets the entity field property descriptors for the dummy instance passed in.
Public methodStatic memberGetEntityFieldStates
Gets the entity field states of the fields in the IList passed in.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodStatic memberGetNamesOfChangedFields
Gets the names of the changed fields. Assumes field sets A and B have the same fields and are equal in size
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 methodStatic memberPrecalculateEntityMaterializationData
Precalculates the entity materialization data, which is passed to ReadRowIntoFields.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberValuesAreEqual
Compares the two values passed in and checks if they're value-wise the same. This extends 'Equals' in the sense that if the values are arrays it considers them the same if the values of the arrays are the same as well and the length is the same.
Top
See Also