Click or drag to resize

EntityFields Class

Class which forms the EntityFields2 type. An EntityFields type is a collection of IEntityField objects which forms the total amount of fields for a given entity. SelfServicing specific
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.ORMSupportClassesEntityFieldsCoreIEntityField
    SD.LLBLGen.Pro.ORMSupportClassesEntityFields

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax
[SerializableAttribute]
public class EntityFields : EntityFieldsCore<IEntityField>, 
	IEntityFields, IEntityFieldsCore, IEditableObject, IList<IEntityFieldCore>, 
	ICollection<IEntityFieldCore>, IEnumerable<IEntityFieldCore>, IEnumerable, 
	IList, ICollection, IEnumerable<IEntityField>

The EntityFields type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
The number of fields allocated in this object.
(Inherited from EntityFieldsCoreTField.)
Public propertyFieldsWithExpressionOrAggregate
Gets the fields with expression or aggregate.
(Inherited from EntityFieldsCoreTField.)
Protected propertyInEntityDataMode
Gets a value indicating whether this object is in entity data mode (part of an entity) or not.
(Inherited from EntityFieldsCoreTField.)
Public propertyIsChangedInThisEditCycle
Flag to signal if the entity fields have changed during an edit cycle which is controlled outside this IEntityFieldsCore object. If set to true, EndEdit will succeed, otherwise EndEdit will ignore any changes, since these are made in a previous edit cycle which is already ended.
(Inherited from EntityFieldsCoreTField.)
Public propertyIsDirty
Gets/sets the flag if the contents of the Entity Fields object is 'dirty', which means that one or more fields are changed.
(Inherited from EntityFieldsCoreTField.)
Public propertyIsFixedSize
Gets a value indicating whether the IList has a fixed size.
(Inherited from EntityFieldsCoreTField.)
Public propertyIsReadOnly
Gets a value indicating whether the IList is read-only.
(Inherited from EntityFieldsCoreTField.)
Public propertyIsSynchronized
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
(Inherited from EntityFieldsCoreTField.)
Public propertyItemInt32
Gets / sets the field on the specified Index.
(Inherited from EntityFieldsCoreTField.)
Public propertyItemString
Gets the field with the specified name.
(Inherited from EntityFieldsCoreTField.)
Public propertyPrimaryKeyFields
List of field references which form the primary key. Returns empty list if this object isn't part of an entity.
(Inherited from EntityFieldsCoreTField.)
Public propertyState
The state of the Entity Fields object, the heart and soul of every EntityObject.
(Inherited from EntityFieldsCoreTField.)
Public propertySyncRoot
Not supported
(Inherited from EntityFieldsCoreTField.)
Protected propertyWrappedFieldsArray
Gets the wrapped fields array.
(Inherited from EntityFieldsCoreTField.)
Top
Methods
  NameDescription
Public methodAdd
Adds an item to the IList.
(Inherited from EntityFieldsCoreTField.)
Public methodClear
Not supported
(Inherited from EntityFieldsCoreTField.)
Public methodClone
Clones this instance and its contents using a deep copy.
Public methodCloneAsDirty
Clones this object to a new EntityFields object where all fields are changed and the object itself is marked dirty.
Public methodCompact
Compacts the list of fields so all empty slots are removed.
(Inherited from EntityFieldsCoreTField.)
Public methodContains
Determines whether the IList contains a specific value.
(Inherited from EntityFieldsCoreTField.)
Public methodContract
Contracts the list of fields so all empty slots at the end of the list of fields are removed. Doesn't perform a contract operation if the fields object is empty
(Inherited from EntityFieldsCoreTField.)
Public methodCopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
(Inherited from EntityFieldsCoreTField.)
Protected methodCreateDeepClone
Clones this instance and its contents using a deep copy.
(Inherited from EntityFieldsCoreTField.)
Protected methodCreateDeepCloneAsDirty
Clones this object to a new EntityFieldsCore<TField> object where all fields are changed and the object itself is marked dirty.
(Inherited from EntityFieldsCoreTField.)
Protected methodCreateFieldInstanceImpl
Creates the field instance impl.
(Overrides EntityFieldsCoreTFieldCreateFieldInstanceImpl(IFieldInfo).)
Protected methodCreateShallowClone
Creates a shallow copy of this instance, which means that a new object is created but all membervariables are kept the same.
(Inherited from EntityFieldsCoreTField.)
Public methodDefineField(IEntityFieldCore, Int32)
Adds the specified field on the position indexInFields in the resultset.
(Inherited from EntityFieldsCoreTField.)
Public methodDefineField(IEntityFieldCore, Int32, AggregateFunction)
Adds the specified field on the position indexInFields in the resultset.
(Inherited from EntityFieldsCoreTField.)
Public methodDefineField(IEntityFieldCore, Int32, String)
Adds the specified field on the position indexInFields in the resultset.
(Inherited from EntityFieldsCoreTField.)
Public methodDefineField(IEntityFieldCore, Int32, String, AggregateFunction)
Adds the specified field on the position indexInFields in the resultset.
(Inherited from EntityFieldsCoreTField.)
Public methodDefineField(IEntityFieldCore, Int32, String, String)
Adds the specified field on the position indexInFields in the resultset.
(Inherited from EntityFieldsCoreTField.)
Public methodDefineField(IEntityFieldCore, Int32, String, String, AggregateFunction)
Adds the specified field on the position indexInFields in the resultset.
(Inherited from EntityFieldsCoreTField.)
Public methodEquals
Compares passed in object with the given object. This is a compare of PK fields. These have to be the same in VALUES. When the values are not the same, or the type is not the same as the current type, false is returned, true otherwise. When this doesn't have any PK fields, all fields are compared. null values are considered as the same value.
(Inherited from EntityFieldsCoreTField.)
Public methodExpand
Expands the specified number of new cells.
(Overrides EntityFieldsCoreTFieldExpand(Int32).)
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 methodForcedValueWrite(Int32, Object)
Sets the current value for the field with the index specified to the currentValue specified without setting changed flags.
(Inherited from EntityFieldsCoreTField.)
Public methodForcedValueWrite(Int32, Object, Object)
Sets the current value for the field with the index specified to the currentValue specified and the dbvalue to the dbvalue specified without setting changed flags.
(Inherited from EntityFieldsCoreTField.)
Public methodGetAsEntityFieldCoreArray
copy the complete list of IEntityField objects to an array of IEntityFieldCore objects. IEntityField objects implement IEntityFieldCore
(Inherited from EntityFieldsCoreTField.)
Public methodGetAsPersistenceInfoArray
Returns the complete list of IEntityField objects as an array of IFieldPersistenceInfo objects. IEntityField objects implement IFieldPersistenceInfo.
Public methodGetCurrentValue
Gets the current value for the field at index specified.
(Inherited from EntityFieldsCoreTField.)
Public methodGetDbValue
Gets the DB value for the field at index specified.
(Inherited from EntityFieldsCoreTField.)
Public methodGetEnumerator
Gets the enumerator for this object.
(Inherited from EntityFieldsCoreTField.)
Public methodGetHashCode
Overrides the GetHashCode routine. It will calculate a hashcode for this set of entity fields using the eXclusive OR of the hashcodes of the primary key fields in this set of entity fields, if this fields object is part of an entity. If not, it will return this object's hashcode, which is also done when no pk fields are present if this fields object is part of an entity
(Inherited from EntityFieldsCoreTField.)
Public methodGetIsChanged
Gets the IsChanged flag for the field at the index specified.
(Inherited from EntityFieldsCoreTField.)
Public methodGetIsNull
Gets the IsNull value for the field with the index specified.
(Inherited from EntityFieldsCoreTField.)
Public methodGetObjectData
Populates a SerializationInfowith the data needed to serialize the target object.
(Inherited from EntityFieldsCoreTField.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Determines the index of a specific item in the IList.
(Inherited from EntityFieldsCoreTField.)
Public methodInsert
Not supported
(Inherited from EntityFieldsCoreTField.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodPerformDeserializationInitialization
in the deserialization constructor in a derived class this method is called to fill this instance with the data being deserialized.
(Inherited from EntityFieldsCoreTField.)
Public methodRemove
Not supported.
(Inherited from EntityFieldsCoreTField.)
Public methodRemoveAt
Not supported.
(Inherited from EntityFieldsCoreTField.)
Public methodSetCurrentValue
Sets the current value for the field at index specified.
(Inherited from EntityFieldsCoreTField.)
Public methodSetDbValue
Sets the db value for the field at the index specified.
(Inherited from EntityFieldsCoreTField.)
Public methodSetIsChanged
Sets the IsChanged flag for the field specified. Sets IsDirty to true if value is true.
(Inherited from EntityFieldsCoreTField.)
Protected methodSetPersistenceInfoIfRequired
Sets the persistence info if required.
(Overrides EntityFieldsCoreTFieldSetPersistenceInfoIfRequired(Int32, TField).)
Public methodShallowClone
Creates a shallow copy of this instance, which means that a new EntityFields object is created but all membervariables are kept the same.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodInT
Creates a predicate which is true if there's an object of type T in values, which has for each property P a field in fields with the same name / alias and the value for property P is equal to the value of the field equivalent in the main query.
(Defined by InPredicateProducers.)
Public Extension MethodNotInT
Creates a predicate which is true if there's no object of type T in values, which has for each property P a field in fields with the same name / alias and the value for property P is equal to the value of the field equivalent in the main query.
(Defined by InPredicateProducers.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodICollectionIEntityFieldCoreAdd
Adds the specified item.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEditableObjectBeginEdit
IEditableObject method. Used by databinding.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEditableObjectCancelEdit
IEditableObject method. Used by databinding. Doesn't reset isDirty.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodICollectionIEntityFieldCoreClear
Clears this instance.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodICollectionIEntityFieldCoreContains
Determines whether [contains] [the specified item].
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodICollectionIEntityFieldCoreCopyTo
Copies to.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate propertyICollectionIEntityFieldCoreCount
Gets the number of slots allocated in this fields object.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEditableObjectEndEdit
IEditableObject method. Used by databinding. A succesful edit has been performed. All new values have to be moved to the current value slots.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEnumerableIEntityFieldGetEnumerator
Returns an enumerator that iterates through the collection.
Explicit interface implementationPrivate methodIEnumerableIEntityFieldCoreGetEnumerator
Gets the enumerator.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through a collection.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIListIEntityFieldCoreIndexOf
returns the index of the item specified
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIListIEntityFieldCoreInsert
Inserts the specified index.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate propertyICollectionIEntityFieldCoreIsReadOnly
Gets a value indicating whether this instance is read only.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate propertyIListIEntityFieldCoreItem
Gets / sets the field on the specified Index.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate propertyIListItem
Gets / sets the EntityField on the specified Index.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIDeserializationCallbackOnDeserialization
Runs when the entire object graph has been deserialized.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodICollectionIEntityFieldCoreRemove
Removes the specified item.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIListIEntityFieldCoreRemoveAt
Removes the field at the index specified
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsWriteXml
Converts this EntityFields object to a set of XmlNodes with all the fields as individual nodes.
Explicit interface implementationPrivate methodIEntityFieldsCoreAcceptChanges
Accepts the changes made. Used in databinding scenarios
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreCleanAndPreserveExpressionsFromFields
Removes the expressions from fields and returns them in the dictionary, key is field index, value is the expression on that field. Only removes expressions from fields which have a non-empty containingobjectname, as those are real entity fields.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreClone
Clones this instance and its contents using a deep copy.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreCloneAsDirty
Clones this object to a new IEntityFieldsCore object where all fields are changed and the object itself is marked dirty.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreCompact
Compacts the list of fields so all empty slots are removed.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreContract
Contracts the list of fields so all empty slots at the end of the list of fields are removed. Doesn't perform a contract operation if the fields object is empty
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate propertyIEntityFieldsCoreCount
Gets the number of slots allocated in this fields object.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreDeserializeData
Deserializes the data of this fields object from the SerializationInfo object specified.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreExpand
Expands this entity fields object by appending numberOfCells new cells to this object.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreGetAsEntityFieldCoreArray
Returns the complete list of IEntityFieldCore objects as an array of IEntityFieldCore objects.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreGetEntityFieldStates
Gets the field states for transaction state save
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreGetEntityNamesOfFields
Gets the entity names of fields.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreGetFieldIndex
Gets the index of the field with the name specified
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreGetFieldInfo
Gets the field info for the field at the index specified.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreGetFieldNames
Gets the field names of the fields contained in this fields object.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreGetHashCode
Returns a hash code for this instance.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreGetLinkedSuperTypeField
Gets the linked super type field for the field with the index specified, or null if not applicable.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreGetUniqueFieldNames
Gets the unique field names.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate propertyIEntityFieldsCoreInheritanceInfoProviderToUse
Gets the inheritance info provider to use.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate propertyIEntityFieldsCoreIsChangedInThisEditCycle
Flag to signal if the entity fields have changed during an edit cycle which is controlled outside this IIEntityFieldsCore object. If set to true, EndEdit will succeed, otherwise EndEdit will ignore any changes, since these are made in a previous edit cycle which is already ended.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate propertyIEntityFieldsCoreIsDirty
Gets / sets the flag if the contents of the IEntityFieldsCore object is 'dirty', which means that one or more fields are changed.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate propertyIEntityFieldsCoreItemInt32
Gets / sets the field on the specified Index.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate propertyIEntityFieldsCoreItemString
Gets the EntityField with the specified name.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreMarkAsFetched
Marks the fields as fetched. Copies the current values to the db values and sets the state to fetched.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate propertyIEntityFieldsCoreOwnPrimaryKeyFieldInfos
Gets the primary key field infos of the pk fields owned by this entity, so not the pk fields inherited from a supertype. If this entity isn't in a TPE inheritance hierarchy, this property is equal to PrimaryKeyFieldInfos
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate propertyIEntityFieldsCorePrimaryKeyFieldInfos
Gets the primary key field infos. Similar to PrimaryKeyFields, but this property doesn't trigger field creation.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate propertyIEntityFieldsCorePrimaryKeyFields
List of IEntityFieldCore references which form the 'primary key', or uniquely identifying set of values for this set of fields, thus for the entity holding these fields. If possible use PrimaryKeyFieldInfos instead.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreReadXml
Reads the fields which are childnodes of the passed in fieldsElement into this object
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreReassignExpressionsOnFields
Reassigns the expressions on fields. Specified are the expressions per field index, as returned by CleanAndPreserveExpressionsFromFields
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreRejectChanges
Rejects the changes made. Used in databinding scenarios
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreSerializeData
Serializes the data of this fields object into the SerializationInfo object specified.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreSetEntityFieldStates
Sets the field states. Used in transaction state save
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreSetValues
Sets the values for the fields, when this object is part of an entity.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreShallowClone
Creates a shallow copy of this instance, which means that a new IEntityFieldsCore object is created but all membervariables are kept the same.
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate propertyIEntityFieldsCoreState
The state of the IEntityFieldsCore object
(Inherited from EntityFieldsCoreTField.)
Explicit interface implementationPrivate methodIEntityFieldsCoreWriteXml
Writes the XML of this Fields object to the writer specified
(Inherited from EntityFieldsCoreTField.)
Top
See Also