Click or drag to resize

EntityBase Class

General Entity Base class, which is used to inherit the Entity classes from.
Inheritance Hierarchy
System.Object
  SD.LLBLGen.Pro.ORMSupportClasses.EntityCore<IEntityFields>
    SD.LLBLGen.Pro.ORMSupportClasses.EntityBase

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
[SerializableAttribute]
public abstract class EntityBase : EntityCore<IEntityFields>, 
	IEntity, IEntityCore, IEditableObject, IActiveContextParticipant, ITransactionalElement

The EntityBase type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyActiveContext
Gets / sets the active context this entity is in. Setting this property is adding the entity to the context, and it will make contained entities be added to the passed in context as well. If the entity is already in a context, setting this property has no effect. Setting this property is done by framework code, use the Context's Add/Get methods to work with contexts and entities.
(Inherited from EntityCore<TFields>.)
Public propertyAuditorToUse
Gets or sets the Auditor for this entity.
(Inherited from EntityCore<TFields>.)
Public propertyAuthorizerToUse
Gets or sets the Authorizer for this entity.
(Inherited from EntityCore<TFields>.)
Public propertyConcurrencyPredicateFactoryToUse
Gets / sets the IConcurrencyPredicateFactory to use for GetConcurrencyPredicate(ConcurrencyPredicateType).
(Inherited from EntityCore<TFields>.)
Protected propertyCustomPropertiesOfType
The custom properties for the type of this entity instance.
(Inherited from EntityCore<TFields>.)
Protected propertyDataErrorInfoError
Gets the data error info error message set by SetEntityError
(Inherited from EntityCore<TFields>.)
Protected propertyDataErrorInfoErrorsPerField
Gets the stored error messages per field name. Used for IDataErrorInfo. Use this property in your own code to re-channel the error messages through another interface.
(Inherited from EntityCore<TFields>.)
Protected propertyDefaultRootElementName
Gets the default name of the root element for xml serialization
(Overrides EntityCore<TFields>.DefaultRootElementName.)
Protected propertyEditCycleInProgress
Gets or sets a value indicating whether an edit cycle is in progress, started through databinding
(Inherited from EntityCore<TFields>.)
Public propertyFields
The internal presentation of the data, which is an EntityFields object, which implements IEntityFields2.
(Inherited from EntityCore<TFields>.)
Protected propertyFieldsCustomPropertiesOfType
The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs.
(Inherited from EntityCore<TFields>.)
Protected propertyInDesignMode
returns true if the classes are used in design-mode in vs.net.
(Inherited from EntityCore<TFields>.)
Protected propertyIsDeserializing
Gets or sets a value indicating whether this instance is deserializing.
(Inherited from EntityCore<TFields>.)
Public propertyIsDirty
Marker for the entity object if the object is 'dirty' (changed, true) or not (false). Affects/reads .Fields.IsDirty.
(Inherited from EntityCore<TFields>.)
Public propertyIsNew
Marker for the entity object if the object is new and should be inserted when saved (true) or read from the database (false).
(Inherited from EntityCore<TFields>.)
Protected propertyIsSerializing
Returns true if this entity instance is in the middle of a Serialization process, for example during a WriteXml() call. For internal use only.
Protected propertyIsUpdateOnlyEntity
Gets a value indicating whether this instance is an update only entity. UpdateOnly entities are entities which are 'split off' from the main entity and only update rows in the database, never insert rows.
(Inherited from EntityCore<TFields>.)
Protected propertyLLBLGenProEntityTypeEnumType
The EntityType enum type
(Inherited from EntityCore<TFields>.)
Protected propertyMarkedForDeletion
flag which is set when the entity is removed from an entity collection and added to a tracker.
(Inherited from EntityCore<TFields>.)
Protected propertyObjectID
Gets / sets the unique Object ID which is created at runtime when the entity is instantiated. Can be used for external caches.
(Inherited from EntityCore<TFields>.)
Protected propertySavedFields
Gets the saved fields.
(Inherited from EntityCore<TFields>.)
Protected propertyTransaction
The ITransaction this ITransactionalElement implementing object is participating in. Only valid if ParticipatesInTransaction is true. If set to null, the ITransactionalElement is no longer participating in a transaction.
(Inherited from EntityCore<TFields>.)
Public propertyValidator
The validator object used to validate the entity on several moments in the entity's life.
(Inherited from EntityCore<TFields>.)
Top
Methods
  NameDescription
Protected methodAddInternalsToContext
Adds the internals to context.
(Inherited from EntityCore<TFields>.)
Protected methodAddToTransactionIfNecessary
Adds the specified entity to the transaction this entity is in, if necessary.
Protected methodCheckForRefetch
Will check if the entity should refetch itself. Will use the factory pattern trick. Refetching occurs when the EntityFields are marked OutOfSync and thus not dirty.
(Overrides EntityCore<TFields>.CheckForRefetch().)
Protected methodCheckIfCurrentFieldValueIsNull Obsolete.
Checks if the current value of the field on the index specified is null / not defined.
(Inherited from EntityCore<TFields>.)
Protected methodCheckIfIsSubTypeOf
Determines whether this entity is a subType of the entity represented by the passed in enum value, which represents a value in the EntityType enum
(Inherited from EntityCore<TFields>.)
Protected methodCheckIfLazyLoadingShouldOccur
Checks if lazy loading should occur for the relation passed in and the FK fields in this entity for the relation Routine is used by GetSingle... lazy loaders in selfservicing entities.
Protected methodCreateAuditor
Creates the auditor object for this entity. Routine is called when the entity is constructed. Implement in an entity class to set a particular entity auditor object at construction time. Use this method if you don't want to use LLBLGen Pro's build in dependency injection mechanism.
(Inherited from EntityCore<TFields>.)
Protected methodCreateAuthorizer
Creates the authorizer object for this entity. Routine is called when the entity is constructed. Implement in an entity class to set a particular entity authorizer object at construction time. Use this method if you don't want to use LLBLGen Pro's build in dependency injection mechanism.
(Inherited from EntityCore<TFields>.)
Protected methodCreateConcurrencyPredicateFactory
Creates the concurrency predicate factory for this entity. Routine is called from the entity constructor. Implement in an entity class to set a particular ConcurrentyPredicateFactory object at construction time. Use this method if you don't want to use LLBLGen Pro's build in dependency injection mechanism.
(Inherited from EntityCore<TFields>.)
Protected methodCreateDAOInstance
Creates the DAO instance for this type
Protected methodCreateEntityFactoryCore
Creates a new entity factory instance related to this entity.
(Overrides EntityCore<TFields>.CreateEntityFactoryCore().)
Protected methodCreateFields
Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.
(Overrides EntityCore<TFields>.CreateFields().)
Protected methodCreateTransaction
Creates a new transaction object
Protected methodCreateTypeDefaultValueProvider
Creates the ITypeDefaultValue instance used to provide default values for value types which aren't of type nullable(of T)
(Inherited from EntityCore<TFields>.)
Protected methodCreateValidator
Creates the validator object for this entity. Routine is called when the entity is constructed. Implement in an entity class to set a particular entity validator object at construction time. Use this method if you don't want to use LLBLGen Pro's build in dependency injection mechanism.
(Inherited from EntityCore<TFields>.)
Public methodDelete()
Deletes the Entity from the persistent storage. This method succeeds also when the Entity is not present. Uses, if applicable, the ConcurrencyPredicateFactory to supply the predicate to limit delete activity.
Public methodDelete(IPredicate)
Deletes the Entity from the persistent storage. This method succeeds also when the Entity is not present.
Public methodDeleteAsync()
Async variant of Delete(). Deletes the Entity from the persistent storage. This method succeeds also when the Entity is not present.
Public methodDeleteAsync(CancellationToken)
Async variant of Delete(). Deletes the Entity from the persistent storage. This method succeeds also when the Entity is not present.
Public methodDeleteAsync(IPredicate)
Async variant of Delete(IPredicate). Deletes the Entity from the persistent storage. This method succeeds also when the Entity is not present.
Public methodDeleteAsync(IPredicate, CancellationToken)
Async variant of Delete(IPredicate). Deletes the Entity from the persistent storage. This method succeeds also when the Entity is not present.
Protected methodDeserializeEntityCoreData
Private CTor for deserialization
(Inherited from EntityCore<TFields>.)
Protected methodDeserializeMemberData
Deserializes the member data of this instance.
Protected methodDesetupSync
Destructs the synchronization setup between the related entity and this entity, related over the member specified.
(Inherited from EntityCore<TFields>.)
Public methodDiscardSavedFields
Removes all saved field sets from the internal hashtable, clearing up space. This method is also called when an entity is saved.
(Inherited from EntityCore<TFields>.)
Protected methodEntity2Xml
Produces the actual XML for this entity, recursively. Because it recurses through referenced entities, it keeps track of which objects are processed so cyclic references are not resulting in cyclic recursion and thus a crash.
(Inherited from EntityCore<TFields>.)
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 EntityCore<TFields>.)
Public methodFetchExcludedFields
Loads the data for the excluded fields specified in the list of excluded fields into this entity.
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.)
Protected methodFixupDeserialization(IFieldInfoProvider)
Fixes deserialization empty references, because fieldinfo isn't serialized into the data.
(Inherited from EntityCore<TFields>.)
Protected methodFixupDeserialization(IFieldInfoProvider, IPersistenceInfoProvider)
Fixes deserialization empty references, because fieldinfo isn't serialized into the data.
(Inherited from EntityCore<TFields>.)
Protected methodFlagAllFieldsAsChanged
A method to call OnPropertyChanged for all fields to signal to bound controls that all fields have been changed.
(Inherited from EntityCore<TFields>.)
Protected methodGetAdditionalRelatedData
Gets the additional related data, next to the data returned by GetRelatedData. This method appends the additional related data to the passed in toAppendTo dictionary. Key is the property name, value is the entity object or entity collection represented by the property.
(Inherited from EntityCore<TFields>.)
Protected methodGetAllRelations
Gets a list of all the EntityRelation objects the type of this instance has.
(Inherited from EntityCore<TFields>.)
Protected methodGetAlreadyFetchedValueForNavigator
Returns the value for the flag _alreadyFetched*NavigatorName*. Used for lazy loading
Protected methodGetAlwaysFetchValueForNavigator
Returns the value for the flag _alwaysFetch*NavigatorName*. Used for lazy loading
Protected methodGetConcurrencyPredicate
Creates the requested predicate of the type specified. If no IConcurrencyPredicateFactory instance is stored in this entity instance, null is returned.
(Inherited from EntityCore<TFields>.)
Public methodGetCurrentFieldValue
Gets the current value of the EntityField2 with the index fieldIndex.
(Inherited from EntityCore<TFields>.)
Protected methodGetDependentRelatedEntities<T>
Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These entities will have to be persisted before this entity during a recursive save.
(Inherited from EntityCore<TFields>.)
Protected methodGetDependentRelatedEntityCoreInstances
Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These entities will have to be persisted before this entity during a recursive save.
(Overrides EntityCore<TFields>.GetDependentRelatedEntityCoreInstances().)
Protected methodGetDependingRelatedEntities<T>
Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save.
(Inherited from EntityCore<TFields>.)
Protected methodGetDependingRelatedEntityCoreInstances
Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save.
(Overrides EntityCore<TFields>.GetDependingRelatedEntityCoreInstances().)
Protected methodGetEntityDescription
Gets the entity description. This string is used in verbose trace messages. It will produce "EntityCore", if verbose tracing is switched off for the GeneralSwitch, to prevent performance loss due to reflection activity for trace results which will never be seen.
(Inherited from EntityCore<TFields>.)
Protected methodGetEntityFactoryFromCache
Gets the factory instance for the entity type specified from the cache.
Protected methodGetEntityStaticMetaData
Gets the entity static meta data instance from the generated type.
(Inherited from EntityCore<TFields>.)
Protected methodGetEntitySyncInformation
Will retrieve all stored entity synchronization information for the passed in entity. If no information is stored, an empty hashtable is returned. All sync info is stored by fieldname
(Inherited from EntityCore<TFields>.)
Protected methodGetEntityTypeValue
Gets the EntityType value as int for this entity.
(Inherited from EntityCore<TFields>.)
Protected methodGetFromActiveContext
Gets the original entity class instance containing the same data (entity instance) as present in toGet from active context. If no active context is set, toGet is returned.
Public methodGetHashCode
Overrides the GetHashCode method. It will calculate a hashcode for this entity using the eXclusive OR of the hashcodes of the primary key fields in this entity. That hashcode is returned. If no primary key fields are present, the hashcode of the base class is returned, which will not be unique.
(Inherited from EntityCore<TFields>.)
Protected methodGetInheritanceInfoProvider
Gets the inheritance info provider instance of the project this entity instance is located in.
(Inherited from EntityCore<TFields>.)
Protected methodGetMemberEntityCollectionCoreInstances
Gets a list of all entity collections stored as member variables in this entity. The contents of the list is used by the DataAccessAdapter to perform recursive saves. Only 1:n related collections are returned.
(Overrides EntityCore<TFields>.GetMemberEntityCollectionCoreInstances().)
Protected methodGetObjectData
ISerializable member. Does custom serialization so event handlers do not get serialized.
(Overrides EntityCore<TFields>.GetObjectData(SerializationInfo, StreamingContext).)
Protected methodGetRelatedData
Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element.
(Inherited from EntityCore<TFields>.)
Protected methodGetRelationsForFieldOfType
Gets the relation objects which represent the relation the fieldName specified is mapped on.
(Inherited from EntityCore<TFields>.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodGetValue
Gets the value of the field with the index specified.
(Inherited from EntityCore<TFields>.)
Protected methodInsertEntity
Performs the insert action of a new Entity to the persistent storage.
Protected methodInsertEntityAsync
Performs the insert action of a new Entity to the persistent storage.
Protected methodMarkFieldsAsDirty
Marks the fields as dirty.
(Inherited from EntityCore<TFields>.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnAuditDeleteOfEntity
Audits the successful delete of an entity from the database
(Inherited from EntityCore<TFields>.)
Protected methodOnAuditDereferenceOfRelatedEntity
Audits the successful dereference of related entity from the entity passed in.
(Inherited from EntityCore<TFields>.)
Protected methodOnAuditDirectDeleteOfEntities
Audits the successful direct delete of entities in the database
(Inherited from EntityCore<TFields>.)
Protected methodOnAuditDirectUpdateOfEntities
Audits the succesful direct update of entities in the database.
(Inherited from EntityCore<TFields>.)
Protected methodOnAuditEntityFieldGet
Audits when an entity field's value is succesfully obtained from the passed in entity
(Inherited from EntityCore<TFields>.)
Protected methodOnAuditEntityFieldSet
Audits when an entity field is set succesfully to a new value.
(Inherited from EntityCore<TFields>.)
Protected methodOnAuditInsertOfNewEntity
Audits the successful insert of a new entity into the database.
(Inherited from EntityCore<TFields>.)
Protected methodOnAuditLoadOfEntity
Audits the successful load of an entity from the database
(Inherited from EntityCore<TFields>.)
Protected methodOnAuditReferenceOfRelatedEntity
Audits the successful reference of related entity from the entity passed in.
(Inherited from EntityCore<TFields>.)
Protected methodOnAuditUpdateOfExistingEntity
Audits the successful update of an existing entity in the database
(Inherited from EntityCore<TFields>.)
Protected methodOnBeforeEntitySave
This method is called from the DataAccessAdapter method OnBeforeEntitySave(), unless that method is overriden. You can override this OnSave method instead, which allows you to make last minute changes, though keep the logic to do that in the entity.
(Inherited from EntityCore<TFields>.)
Protected methodOnBeginEdit
Called after BeginEdit is succesfully called.
(Inherited from EntityCore<TFields>.)
Protected methodOnCanBatchDeleteEntitiesDirectly
Method which will check if the caller is allowed to delete entities directly in the database.
(Inherited from EntityCore<TFields>.)
Protected methodOnCanBatchUpdateEntitiesDirectly
Method which will check if the caller is allowed to update entities directly in the database.
(Inherited from EntityCore<TFields>.)
Protected methodOnCancelEdit
Called after CancelEdit is succesfully called.
(Inherited from EntityCore<TFields>.)
Protected methodOnCanDeleteEntity
Method which will check if the caller is allowed to delete this existing entity object
(Inherited from EntityCore<TFields>.)
Protected methodOnCanGetFieldValue
Method which will check if the caller is allowed to get the field value with the index specified.
(Inherited from EntityCore<TFields>.)
Protected methodOnCanLoadEntity
Method which will check if the caller is allowed to fill this entity object with entity data from the database or not.
(Inherited from EntityCore<TFields>.)
Protected methodOnCanSaveExistingEntity
Method which will check if the caller is allowed to save this existing entity object
(Inherited from EntityCore<TFields>.)
Protected methodOnCanSaveNewEntity
Method which will check if the caller is allowed to save this new entity object
(Inherited from EntityCore<TFields>.)
Protected methodOnCanSetFieldValue
Method which will check if the caller is allowed to set the field value with the index specified.
(Inherited from EntityCore<TFields>.)
Protected methodOnDelete
Called right before the entity's Delete logic is started.
Protected methodOnDeleteComplete
Called after the entity's delete routine is finished.
Protected methodOnDeserialized
Called at the end of the deserialization constructor. Method is used when this object is deserialized. Override this method to tap into the deserialization sequence. (binary/soap formatter specific).
(Inherited from EntityCore<TFields>.)
Protected methodOnEndEdit
Called after EndEdit is succesfully called.
(Inherited from EntityCore<TFields>.)
Protected methodOnEntityAfterSave
Event handler which is called by a related entity after that entity is persisted.
(Inherited from EntityCore<TFields>.)
Protected methodOnEntityContentsChanged
Called when the entity's contents has been changed.
(Inherited from EntityCore<TFields>.)
Protected methodOnFetch
Called right before the entity's Fetch logic is started.
Protected methodOnFetchComplete
Called after the entity's Fetch routine is finished.
Protected methodOnFieldsCreated
Called by CreateFields, after the fields object has been created, which are passed in.
Protected methodOnFieldValueChanged
Method which is called right after a field's value has been changed. There are a couple of methods called in the process of setting a field's value. This particular method is solely there to act on a field's value set action. It doesn't raise an event, though it receives the old and new value of the field. Not called if a fieldvalue set action failed. This method is called before changed events are raised.
(Inherited from EntityCore<TFields>.)
Protected methodOnGetFetchNewAuthorizationFailureResultHint
Returns the FetchNewAuthorizationFailureResultHint as returned by the authorizer. Only called when the CanGetLoad failed (authorization failed, so load was denied)
(Inherited from EntityCore<TFields>.)
Protected methodOnGetObjectData
Called at the end of GetObjectData. Method is used when this object is serialized. Override this method to tap into the serialization sequence. (binary/soap formatter specific).
(Inherited from EntityCore<TFields>.)
Protected methodOnGetValue
Called right at the beginning of GetValue(), which is called from an entity field property getter
(Inherited from EntityCore<TFields>.)
Protected methodOnGetValueComplete
Called right at the end of GetValue(), which is called from an entity field property getter
(Inherited from EntityCore<TFields>.)
Protected methodOnInitClassMembersComplete
Called when InitClassMembers is complete.
(Inherited from EntityCore<TFields>.)
Protected methodOnInitialized
Called at the end of the initialization method. Raises Initialized event.
(Inherited from EntityCore<TFields>.)
Protected methodOnInitializing
Called at the start of the initialization method. Raises Initializing event.
(Inherited from EntityCore<TFields>.)
Protected methodOnPropertyChanged
Called when a property changed value. Call this method to signal databound controls a property has changed.
(Inherited from EntityCore<TFields>.)
Protected methodOnRelatedEntitySet
Method which is called at the end of the SetRelatedEntity() method. Usable to act on the fact that a related entity has been set.
(Inherited from EntityCore<TFields>.)
Protected methodOnRelatedEntityUnset
Method which is called at the end of the UnsetRelatedEntity() method. Usable to act on the fact that an entity has been dereferenced as a related entity by the containing entity.
(Inherited from EntityCore<TFields>.)
Protected methodOnRequiresTransactionForAuditEntities
Method which returns true if this auditor expects to have audit entities to persist and therefore needs a transaction. This method is called in the situation when there's no transaction going on though one should be started right before the single-statement action in the case if the auditor has entities to save afterwards. It's recommended to return true if the auditor might have audit entities to persist after an entity save/delete/direct update/direct delete of entities. Default: false
(Inherited from EntityCore<TFields>.)
Protected methodOnSave
Called right before the entity's save logic is started. This is right after all entities this entity depends on are saved succesfully.
Protected methodOnSaveComplete
Called after the entity's save routine is finished.
Protected methodOnSetRelatedEntityProperty
Method which is called in the default clause of the SetRelatedEntityProperty method during the merge process of prefetch path fetches.
(Inherited from EntityCore<TFields>.)
Protected methodOnSetValue
Called right at the beginning of SetValue(), which is called from an entity field property setter
(Inherited from EntityCore<TFields>.)
Protected methodOnSetValueComplete
Called right at the end of SetValue(), which is called from an entity field property setter
(Inherited from EntityCore<TFields>.)
Protected methodOnTransactionCommit
Called after the TransactionCommit method has been finished.
(Inherited from EntityCore<TFields>.)
Protected methodOnTransactionRollback
Called after the TransactionRollback method has been finished.
(Inherited from EntityCore<TFields>.)
Protected methodOnValidateEntityAfterLoad
Method to validate the containing entity after it is loaded. This method is called after the entity has been fully loaded.
(Inherited from EntityCore<TFields>.)
Protected methodOnValidateEntityAfterSave
Method to validate the containing entity right after the entity's save action has been completed and the entity has been refetched (if applicable). Note for adapter users: if the entity wasn't set to be refetched, take into account that reading properties from the containing entity will result in an OutOfSync exception.
(Inherited from EntityCore<TFields>.)
Protected methodOnValidateEntityBeforeDelete
Method to validate the containig entity right beforethe entity's delete action will take place.
(Inherited from EntityCore<TFields>.)
Protected methodOnValidateEntityBeforeSave
Method to validate the containing entity right before the save sequence for the entity will start. LLBLGen Pro will call this method right after the containing entity is selected from the save queue to be saved.
(Inherited from EntityCore<TFields>.)
Protected methodOnValidateFieldValue
Method which will validate, using custom code supplied this class, the field with index fieldIndex if it should accept the specified value. This method is only called when standard checks already succeeded, so value isn't null, and value does match the destination column definition of the EntityField related to fieldIndex.
(Inherited from EntityCore<TFields>.)
Protected methodPerformCustomXmlDeserialization
Performs custom XML deserialization for properties which have the CustomXmlSerializationAttribute. The xmlreader should be used to read the xml from. The reader is positioned on the StartElement of the property which has the name of the property. Check if the element is empty and if not, read till the reader is positioned on the EndElement of the property (which also has the same name). Your override has to set the property's value, using the descriptor's SetValue method.
(Inherited from EntityCore<TFields>.)
Protected methodPerformCustomXmlSerialization
Performs custom XML serialization for properties which have the CustomXmlSerializationAttribute. Override this method if for some property the data has to be serialized into the output. The xmlwriter should be used to write xml to. You shouldn't emit a startelement with the propertyname, that's already done. Also you shouldn't emit an endelement with the propertyname, that will be done for you. Simply emit XML with the data. Be sure the xml data is valid. You can use the XmlHelper class if necessary.
(Inherited from EntityCore<TFields>.)
Protected methodPerformDependencyInjection
Performs the dependency injection of related objects. This method will call the Create* methods to create validator, concurrency predicate factory and will then kick in the DependencyInjection functionality build into LLBLGen Pro. This method is called at the end of an entity's InitClassMembers method in the generated code.
(Inherited from EntityCore<TFields>.)
Protected methodPerformDesyncSetupFKFieldChange
Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed.
(Inherited from EntityCore<TFields>.)
Protected methodPerformMultiEntityLazyLoading<TCollection>
Performs a 1:n lazy loading fetch for the navigator specified.
Protected methodPerformPostReadXmlFixups
Routine which is used to perform tasks after a ReadXml() action on this entity instance was performed
(Overrides EntityCore<TFields>.PerformPostReadXmlFixups().)
Protected methodPerformRelatedEntityRemoval
Performs the related entity removal.
(Inherited from EntityCore<TFields>.)
Protected methodPerformSingleEntityLazyLoading<TEntity>(String, Boolean, Boolean, Func<TEntity>)
Performs a single-entity lazy loading action. Inheritance variant
Protected methodPerformSingleEntityLazyLoading<TEntity>(String, Boolean, Boolean, Func<TEntity, Boolean>)
Performs a single entity lazy loading action. Non-inheritance variant
Protected methodPostFieldValueSetAction
Method to perform post-fieldvalue set actions, like flagging this object as changed.
(Inherited from EntityCore<TFields>.)
Protected methodPostProcessValueToGet
Post-processes the value to return from GetValue. Override this method to be able to post-process any value to return from an entity field's property.
(Inherited from EntityCore<TFields>.)
Protected methodPreProcessValueToSet
Method which is meant to be overriden to pre-process a value right before it is set as a field's new value. In general you don't need to override this method. By default it's a no-op.
(Inherited from EntityCore<TFields>.)
Public methodReadXml(String)
Will fill the entity and its containing members (recursively) with the data stored in the XmlNode passed in. The XmlNode has to be filled with Xml in the format written by IEntityCore.WriteXml() and the Xml has to be compatible with the structure of this entity collection.
(Inherited from EntityCore<TFields>.)
Public methodReadXml(XmlNode)
Will fill the entity and its containing members (recursively) with the data stored in the XmlNode passed in. The XmlNode has to be filled with Xml in the format written by IEntityCore.WriteXml() and the Xml has to be compatible with the structure of this entity collection.
(Inherited from EntityCore<TFields>.)
Public methodReadXml(XmlReader)
Constructs an object graph with this object as the root from the xml contained by the passed in XmlReader object.
(Inherited from EntityCore<TFields>.)
Protected methodReadXml(XmlNode, XmlFormatAspect)
Will fill the entity and its containing members (recursively) with the data stored in the XmlNode passed in. The XmlNode has to be filled with Xml in the format written by IEntityCore.WriteXml() and the Xml has to be compatible with the structure of this entity collection.
(Inherited from EntityCore<TFields>.)
Public methodReadXml(XmlReader, XmlFormatAspect)
Constructs an object graph with this object as the root from the xml contained by the passed in XmlReader object.
(Inherited from EntityCore<TFields>.)
Protected methodReadXmlExplicitImpl
Calls into ReadXml(reader), which will use the document route.
(Overrides EntityCore<TFields>.ReadXmlExplicitImpl(XmlReader).)
Public methodRefetch
Refetches the Entity from the persistent storage. Refetch is used to re-load an Entity which is marked "Out-of-sync", due to a save action. Refetching an empty Entity has no effect.
Protected methodRemoveFromParentCollection
Removes this instance from the parent collection (if present), to which it was added through databinding
(Overrides EntityCore<TFields>.RemoveFromParentCollection().)
Protected methodRemoveFromTransactionIfNecessary
Removes the specified element from the transaction this entity is in if necessary.
Public methodRollbackFields
Replaces the current set of fields with the fields saved under the name specified. If no set of fields is found with the name specified an exception is thrown. Removes the entry after a succesful rollback.
(Inherited from EntityCore<TFields>.)
Public methodSave()
Saves the Entity class to the persistent storage. It updates or inserts the entity, which depends if the entity was originally read from the database. Will not recursively save internal dirty entities. Uses, if applicable, the ConcurrencyPredicateFactory to supply the predicate to limit save activity.
Public methodSave(Boolean)
Saves the Entity class to the persistent storage. It updates or inserts the entity, which depends if the entity was originally read from the database. Uses, if applicable, the ConcurrencyPredicateFactory to supply the predicate to limit save activity.
Public methodSave(IPredicate)
Saves the Entity class to the persistent storage. It updates or inserts the entity, which depends if the entity was originally read from the database. If the entity is new, an insert is done and the updateRestriction is ignored. If the entity is not new, the updateRestriction predicate is used to create an additional where clause (it will be added with AND) for the update query. This predicate can be used for concurrency checks, like checks on timestamp column values. Will not recursively save internal dirty entities.
Public methodSave(IPredicate, Boolean)
Saves the Entity class to the persistent storage. It updates or inserts the entity, which depends if the entity was originally read from the database. If the entity is new, an insert is done and the updateRestriction is ignored. If the entity is not new, the updateRestriction predicate is used to create an additional where clause (it will be added with AND) for the update query. This predicate can be used for concurrency checks, like checks on timestamp column values.
Public methodSaveAsync()
Async variant of Save() Saves the Entity class to the persistent storage. It updates or inserts the entity, which depends if the entity was originally read from the database. If the entity is new, an insert is done and the updateRestriction is ignored. If the entity is not new, the updateRestriction predicate is used to create an additional where clause (it will be added with AND) for the update query. This predicate can be used for concurrency checks, like checks on timestamp column values.
Public methodSaveAsync(Boolean)
Async variant of Save(Boolean) Saves the Entity class to the persistent storage. It updates or inserts the entity, which depends if the entity was originally read from the database. If the entity is new, an insert is done and the updateRestriction is ignored. If the entity is not new, the updateRestriction predicate is used to create an additional where clause (it will be added with AND) for the update query. This predicate can be used for concurrency checks, like checks on timestamp column values.
Public methodSaveAsync(CancellationToken)
Async variant of Save() Saves the Entity class to the persistent storage. It updates or inserts the entity, which depends if the entity was originally read from the database. If the entity is new, an insert is done and the updateRestriction is ignored. If the entity is not new, the updateRestriction predicate is used to create an additional where clause (it will be added with AND) for the update query. This predicate can be used for concurrency checks, like checks on timestamp column values.
Public methodSaveAsync(IPredicate)
Async variant of Save(IPredicate) Saves the Entity class to the persistent storage. It updates or inserts the entity, which depends if the entity was originally read from the database. If the entity is new, an insert is done and the updateRestriction is ignored. If the entity is not new, the updateRestriction predicate is used to create an additional where clause (it will be added with AND) for the update query. This predicate can be used for concurrency checks, like checks on timestamp column values.
Public methodSaveAsync(Boolean, CancellationToken)
Async variant of Save(Boolean) Saves the Entity class to the persistent storage. It updates or inserts the entity, which depends if the entity was originally read from the database. If the entity is new, an insert is done and the updateRestriction is ignored. If the entity is not new, the updateRestriction predicate is used to create an additional where clause (it will be added with AND) for the update query. This predicate can be used for concurrency checks, like checks on timestamp column values.
Public methodSaveAsync(IPredicate, Boolean)
Async variant of Save(IPredicate, Boolean) Saves the Entity class to the persistent storage. It updates or inserts the entity, which depends if the entity was originally read from the database. If the entity is new, an insert is done and the updateRestriction is ignored. If the entity is not new, the updateRestriction predicate is used to create an additional where clause (it will be added with AND) for the update query. This predicate can be used for concurrency checks, like checks on timestamp column values.
Public methodSaveAsync(IPredicate, CancellationToken)
Async variant of Save(IPredicate) Saves the Entity class to the persistent storage. It updates or inserts the entity, which depends if the entity was originally read from the database. If the entity is new, an insert is done and the updateRestriction is ignored. If the entity is not new, the updateRestriction predicate is used to create an additional where clause (it will be added with AND) for the update query. This predicate can be used for concurrency checks, like checks on timestamp column values.
Public methodSaveAsync(IPredicate, Boolean, CancellationToken)
Async variant of Save(IPredicate, Boolean) Saves the Entity class to the persistent storage. It updates or inserts the entity, which depends if the entity was originally read from the database. If the entity is new, an insert is done and the updateRestriction is ignored. If the entity is not new, the updateRestriction predicate is used to create an additional where clause (it will be added with AND) for the update query. This predicate can be used for concurrency checks, like checks on timestamp column values.
Public methodSaveFields
Saves the current set of fields under the name specified in an internal hashtable. All data inside the field objects is preserved. If there is already a set of fields saved under the name specified, that set of fields is overwritten.
(Inherited from EntityCore<TFields>.)
Protected methodSetAlreadyFetchedValueForNavigator
Sets the _alreadyFetched*Navigatorname* flag for the navigator specified to the value specified.
(Overrides EntityCore<TFields>.SetAlreadyFetchedValueForNavigator(String, Boolean, Boolean).)
Protected methodSetAlwaysFetchValueForNavigator
Sets the _alwaysFetch*Navigatorname* flag for the navigator specified to the value specified.
Protected methodSetDiscriminatorFlagIfRequired
Sets the discriminator flag if required.
(Inherited from EntityCore<TFields>.)
Public methodSetEntityError
Sets the error message which is returned by IDataErrorInfo.Error
(Inherited from EntityCore<TFields>.)
Public methodSetEntityFieldError
Sets the error message for the field specified. If there's already a message stored for this field, it's overwritten unless append is set to true, which appends the message to the existing error using a semi-colon as separator. The message stored is returned by IDataErrorInfo[fieldName];
(Inherited from EntityCore<TFields>.)
Protected methodSetEntitySyncInformation
Will set the passed in information as Entity sync information. If there is no sync information stored yet for the related entity then a new entry is created, otherwise it's info is added to the sync information of this entity, if it isn't already present. If there is already sync information for this field stored for another related entity, that information is removed.
(Inherited from EntityCore<TFields>.)
Public methodSetNewFieldValue(Int32, Object)
Sets the EntityField2 on index fieldIndex to the new value value. Marks also the entityfields2 as dirty.
(Inherited from EntityCore<TFields>.)
Public methodSetNewFieldValue(String, Object)
Sets the EntityField with the name fieldName to the new value value. Marks also the entityfields as dirty. Will refetch the complete entity's fields from the database if necessary (i.e. the entity is outofsync.).
(Inherited from EntityCore<TFields>.)
Protected methodSetNewFieldValue(Int32, Object, Boolean) Obsolete.
Sets the Entity Field on index fieldIndex to the new value value. Marks also the entityfields2 as dirty.
(Inherited from EntityCore<TFields>.)
Protected methodSetRelatedEntity
Sets the internal parameter related to the fieldname passed to the instance relatedEntity.
(Overrides EntityCore<TFields>.SetRelatedEntity(IEntityCore, String).)
Protected methodSetRelatedEntityProperty
Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection.
(Overrides EntityCore<TFields>.SetRelatedEntityProperty(String, IEntityCore).)
Protected methodSetSingleRelatedEntityNavigator
Sets the single related entity navigator to the value (toSet) specified. This isn't done directly, but indirecly by the opposite entity
Protected methodSetupSync<T>
Sets up the synchronization between the related entity and this entity, related over the member specified.
(Inherited from EntityCore<TFields>.)
Protected methodSetValue(Int32, Object)
Sets the value of the field with the index specified to the value specified.
(Inherited from EntityCore<TFields>.)
Protected methodSetValue(Int32, Object, Boolean)
Sets the EntityField on index fieldIndex to the new value value. Marks also the entityfields as dirty. Will refetch the complete entity's fields from the database if necessary (i.e. the entity is outofsync.).
(Inherited from EntityCore<TFields>.)
Protected methodSetValue(Int32, Object, Boolean, Boolean)
Sets the value of the field with the index specified to the value specified.
(Inherited from EntityCore<TFields>.)
Protected methodSyncFKFields
Synchronizes the PK values of the dataSupplier with the related FK values of this entity.
(Inherited from EntityCore<TFields>.)
Public methodTestCurrentFieldValueForNull Obsolete.
Returns true if the current value for the field with the fieldIndex passed in represents null/not defined, false otherwise. Should not be used for testing if the original value (read from the db) is NULL
(Inherited from EntityCore<TFields>.)
Public methodTestOriginalFieldValueForNull
Returns true if the original value for the field with the fieldIndex passed in, read from the persistent storage was NULL, false otherwise. Should not be used for testing if the current value is NULL, use TestCurrentFieldValueForNull(Enum) for that.
(Inherited from EntityCore<TFields>.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodUnsetEntitySyncInformation
Will unset (remove) the passed in information as Entity sync information. If there is no sync information stored for the related entity after this info has been removed, the complete hashentry is removed.
(Inherited from EntityCore<TFields>.)
Protected methodUnsetRelatedEntity
Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity()
(Overrides EntityCore<TFields>.UnsetRelatedEntity(IEntityCore, String, Boolean).)
Protected methodUpdateEntity()
Performs the update action of an existing Entity to the persistent storage.
Protected methodUpdateEntity(IPredicate)
Performs the update action of an existing Entity to the persistent storage.
Protected methodUpdateEntityAsync(CancellationToken)
Performs the update action of an existing Entity to the persistent storage.
Protected methodUpdateEntityAsync(IPredicate, CancellationToken)
Performs the update action of an existing Entity to the persistent storage.
Protected methodValidate Obsolete.
Method to keep code compilable however which is now marked as obsolete, as people should call ValidateEntity.
(Inherited from EntityCore<TFields>.)
Public methodValidateEntity
General validation method which isn't used by the LLBLGen Pro framework, but can be used by your own code to validate an entity at any given moment.
(Inherited from EntityCore<TFields>.)
Public methodWriteXml(XmlWriter)
Constructs the XML output from the object graph which has this object as the root.
(Overrides EntityCore<TFields>.WriteXml(XmlWriter).)
Public methodWriteXml(String)
Converts this entity to XML, recursively. Uses the LLBLGenProEntityName for the rootnode name
(Inherited from EntityCore<TFields>.)
Public methodWriteXml(String, String)
Converts this entity to XML, recursively.
(Inherited from EntityCore<TFields>.)
Public methodWriteXml(XmlDocument, XmlNode)
Converts this entity to XML, recursively. Uses the LLBLGenProEntityName for the rootnode name
(Inherited from EntityCore<TFields>.)
Public methodWriteXml(XmlWriter, XmlFormatAspect)
Converts this entity to XML
(Inherited from EntityCore<TFields>.)
Public methodWriteXml(XmlFormatAspect, String)
Converts this entity to XML, recursively. Uses the LLBLGenProEntityName for the rootnode name
(Inherited from EntityCore<TFields>.)
Public methodWriteXml(String, XmlDocument, XmlNode)
Converts this entity to XML, recursively.
(Inherited from EntityCore<TFields>.)
Public methodWriteXml(XmlWriter, XmlFormatAspect, String)
Converts this entity to XML
(Inherited from EntityCore<TFields>.)
Public methodWriteXml(XmlFormatAspect, String, String)
Converts this entity to XML, recursively.
(Overrides EntityCore<TFields>.WriteXml(XmlFormatAspect, String, String).)
Public methodWriteXml(XmlFormatAspect, XmlDocument, XmlNode)
Converts this entity to XML, recursively. Uses the LLBLGenProEntityName for the rootnode name
(Inherited from EntityCore<TFields>.)
Public methodWriteXml(XmlWriter, XmlFormatAspect, String, Dictionary<Guid, IEntityCore>)
Converts this entity to XML
(Inherited from EntityCore<TFields>.)
Public methodWriteXml(XmlFormatAspect, String, XmlDocument, XmlNode)
Converts this entity to XML, recursively.
(Overrides EntityCore<TFields>.WriteXml(XmlFormatAspect, String, XmlDocument, XmlNode).)
Protected methodXml2Entity(XmlNode, Dictionary<Guid, IEntityCore>, List<NodeEntityReference>)
Performs the actual conversion from Xml to entity data.
(Overrides EntityCore<TFields>.Xml2Entity(XmlNode, Dictionary<Guid, IEntityCore>, List<NodeEntityReference>).)
Protected methodXml2Entity(XmlReader, Dictionary<Guid, IEntityCore>, List<NodeEntityReference>)
Performs the actual conversion from Xml to entity data.
(Inherited from EntityCore<TFields>.)
Top
Events
  NameDescription
Public eventAfterSave
Event handler declaration for the event that is fired each time this entity is persisted. Related entities can subscribe to this event to start housekeeping actions, like syncing internal FK fields with the PK fields of this entity.
(Inherited from EntityCore<TFields>.)
Public eventEntityContentsChanged
Event handler declaration for the event that is fired each time the one of values of this entity are changed. The event does not contain the value / field which is changed, it only signals subscribers the entity is changed and the subscriber should act accordingly, f.e. fire a ListChanged event.
(Inherited from EntityCore<TFields>.)
Public eventInitialized
Event which is raised at the end of the initialization method of the entity. This event is also raised if the entity is pre-filled with a filled EntityFields(2) object. In your handler, check the State property of the entity Fields to see if you're dealing with a new entity or with an entity which is new, but pre-initialized with filled field objects.
(Inherited from EntityCore<TFields>.)
Public eventInitializing
Event which is raised at the start of the initialization method of the entity. The entity is clean and has no entity fields object yet.
(Inherited from EntityCore<TFields>.)
Public eventPropertyChanged
Event fired when a field / property is changed. To fire this event from a derived class, call OnPropertyChanged.
(Inherited from EntityCore<TFields>.)
Top
Fields
  NameDescription
Public fieldStatic memberEnableLazyLoading
Global flag to control whether lazy loading should be enabled (true, default) or not (false). Setting this to false, disables normal lazy loading in entities, unless the specific 'AlwaysFetch...' flag is set for the particular navigator in the entity instance.
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIEditableObject.BeginEdit
Begins an edit on an object.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEditableObject.CancelEdit (Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEditableObject.EndEdit (Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate propertyIDataErrorInfo.Error
Gets an error message indicating what is wrong with this object.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodISerializable.GetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIXmlSerializable.GetSchema
Produce the schema, always return null, as the XmlSerializer object otherwise can't handle our code.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate propertyIDataErrorInfo.Item
Gets the String with the specified column name.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIDeserializationCallback.OnDeserialization
Runs when the entire object graph has been deserialized.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIXmlSerializable.ReadXml
Constructs an object graph with this object as the root from the xml contained by the passed in XmlReader object.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntity.GetDependentRelatedEntities
Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These entities will have to be persisted before this entity during a recursive save.
Explicit interface implementationPrivate methodIEntity.GetDependingRelatedEntities
Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save.
Explicit interface implementationPrivate methodIEntity.GetEntityFactory
Returns a new ready to use factory for the type of this instance.
Explicit interface implementationPrivate methodIEntity.GetMemberEntityCollections
Gets a list of all entity collections stored as member variables in this entity. The contents of the list is used by the Save logic to perform recursive saves. Only 1:n related collections are returned.
Explicit interface implementationPrivate propertyIEntity.IsSerializing
Returns true if this entity instance is in the middle of a serialization process, for example during a WriteXml() call. For internal use only.
Explicit interface implementationPrivate propertyIEntity.PrimaryKeyFields
List of IEntityField references which form the primary key. Reads/Affects .Fields.PrimaryKeyFields
Explicit interface implementationPrivate methodIEntityCore.AcceptChanges
Accepts the changes made to the fields. Used in databinding/service scenarios. Calls AcceptChanges on the fields in this entity
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.CheckIfEntityHasPendingFkSyncs<TEntity>
Checks whether this instance has pending fk syncs. A pending FK sync is a sync which hasn't been used yet. If an entity has pending FK syncs, it has to be included into a save queue. Only syncs with entities in the passed in queue are considered. If a sync is with an entity which isn't in the passed in queue, the sync isn't honoured anyway, so the fk sync can be ignored.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.CheckIfIsSubTypeOf
Determines whether this entity is a subType of the entity represented by the passed in enum value, which represents a value in the EntityType enum
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate propertyIEntityCore.CustomPropertiesOfType
The custom properties for the type of this entity instance.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.DiscardSavedFields
Removes all saved field sets from the internal hashtable, clearing up space. This method is also called when an entity is saved.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate propertyIEntityCore.Fields
Gets the fields object of this entity.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate propertyIEntityCore.FieldsCustomPropertiesOfType
The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.FlagAsSaved
Flags me as saved.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.FlagMeAsChanged
Routine which will flag all subscribers of the EntityContentsChanged event that this entity's contents is changed.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.GetAllRelations
Gets a list of all the EntityRelation objects the type of this instance has.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.GetConcurrencyPredicate
Creates the requested predicate of the type specified. If no IConcurrencyPredicateFactory instance is stored in this entity instance, null is returned.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.GetDependentRelatedEntities
Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These entities will have to be persisted before this entity during a recursive save.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.GetDependingRelatedEntities
Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.GetEntityDescription(Boolean)
Gets the entity description. This string is used in verbose trace messages. It will produce "EntityCore", if the passed in switch flag is false, to prevent performance loss due to reflection activity for trace results which will never be seen.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.GetEntityDescription(Boolean, IEntityCore)
Gets the entity description. This string is used in verbose trace messages. It will produce "EntityCore", if verbose tracing is switched off for the GeneralSwitch, to prevent performance loss due to reflection activity for trace results which will never be seen.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.GetEntityFactory
Returns a new ready to use factory for the type of this instance.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.GetFieldByName
Helper method which performs a lookup in the fields based on the name specified.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.GetInheritanceInfo
Gets the inheritance info for this entity, if applicable (it's then overriden) or null if not.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.GetInheritanceInfoProvider
Gets the inheritance info provider instance of the project this entity instance is located in.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.GetMemberEntityCollections
Gets a list of all entity collections stored as member variables in this entity. The contents of the list is used by the DataAccessAdapter to perform recursive saves. Only 1:n related collections are returned.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.GetRelatedData
Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.GetRelationsForFieldOfType
Gets the relation objects which represent the relation the fieldName specified is mapped on.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate propertyIEntityCore.IsDeserializing
Returns true if this entity instance is in the middle of a deserialization process, for example during a ReadXml() call. For internal use only.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate propertyIEntityCore.IsUpdateOnlyEntity
Gets a value indicating whether this instance is an update only entity. UpdateOnly entities are entities which are 'split off' from the main entity and only update rows in the database, never insert rows.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate propertyCode exampleIEntityCore.LLBLGenProEntityName
Returns the full name for this entity, which is important for the DAO to find back persistence info for this entity.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate propertyIEntityCore.LLBLGenProEntityTypeValue
Returns the EntityType enum value for this entity.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate propertyIEntityCore.LLBLGenProIsInHierarchyOfType
Gets the type of the hierarchy this entity is in.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate propertyIEntityCore.MarkedForDeletion
flag which is set when the entity is removed from an entity collection and added to a tracker.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate propertyIEntityCore.ObjectID
Gets / sets the unique Object ID which is created at runtime when the entity is instantiated. Can be used for external caches.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate propertyIEntityCore.PrimaryKeyFieldInfos
Gets the primary key field infos. Similar to PrimaryKeyFields, but this property doesn't trigger field creation.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate propertyIEntityCore.PrimaryKeyFields
List of IEntityField2 references which form the primary key. Reads/Affects .Fields.PrimaryKeyFields. If possible use PrimaryKeyFieldInfos instead.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.RejectChanges
Rejects the changes made to the fields. Used in databinding/service scenarios. Calls RejectChanges on the fields in this entity
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.RollbackFields
Replaces the current set of fields with the fields saved under the name specified. If no set of fields is found with the name specified an exception is thrown. Removes the entry after a succesful rollback.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.SaveFields
Saves the current set of fields under the name specified in an internal hashtable. All data inside the field objects is preserved. If there is already a set of fields saved under the name specified, that set of fields is overwritten.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.SetRelatedEntity
Sets the internal parameter related to the fieldname passed to the instance relatedEntity.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.SetRelatedEntityProperty
Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate propertyIEntityCore.TypeDefaultValueProviderToUse
Gets or sets the TypeDefaultValue provider to use. This object is used to provide default values for value typed fields which are null and not of type Nullable(Of T)
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.UnsetRelatedEntity(IEntityCore, String)
Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity()
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodIEntityCore.UnsetRelatedEntity(IEntityCore, String, Boolean)
Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity()
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate propertyITransactionalElement.ParticipatesInTransaction
Flag to check if the ITransactionalElement implementing object is participating in a transaction or not.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate propertyITransactionalElement.Transaction
The ITransaction this ITransactionalElement implementing object is participating in. Only valid if ParticipatesInTransaction is true. If set to null, the ITransactionalElement is no longer participating in a transaction.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodITransactionalElement.TransactionCommit
When the ITransaction in which this element participates is commited, this element can succesfully finish actions performed by this element. This method is called by ITransaction, you should not call it by yourself. When this element doesn't participate in a transaction it finishes the actions itself, calling this method is not needed.
(Inherited from EntityCore<TFields>.)
Explicit interface implementationPrivate methodITransactionalElement.TransactionRollback
When the ITransaction in which this element participates is rolled back, this element has to roll back its internal variables. This method is called by ITransaction, you should not call it by yourself.
(Inherited from EntityCore<TFields>.)
Top
See Also