Click or drag to resize

EntityFactoryCore Class

Abstract base class for entity factories. The class is suffixed with 'Core' as the generated code contains another base class, EntityFactoryBase, which is the direct base class for the generated entity factories.
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.ORMSupportClassesEntityFactoryCore

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.9.0.0 (5.9.0)
Syntax
[SerializableAttribute]
public abstract class EntityFactoryCore : IEntityFactory, 
	IEntityFactoryCore

The EntityFactoryCore type exposes the following members.

Constructors
  NameDescription
Protected methodEntityFactoryCore
Initializes a new instance of the EntityFactoryCore class.
Top
Properties
  NameDescription
Public propertyForEntityEnumType
returns the int value for the EntityType enum value for the entity this factory is for.
Public propertyForEntityName
returns the name of the entity this factory is for, e.g. "EmployeeEntity"
Protected propertyForEntityType
Returns the actual .NET type this factory creates entities of
Top
Methods
  NameDescription
Public methodCreate
Creates a new IEntity instance
Public methodCreate(IEntityFields)
Creates a new IEntity instance but uses a special constructor which will set the Fields object of the new IEntity instance to the passed in fields object. Implement this method to support multi-type in single table inheritance.
Public methodCreateEntityCollection
Creates a new entity collection for the entity of this factory.
Public methodCreateEntityFromEntityTypeValue
Creates a new entity instance using the GeneralEntityFactory in the generated code, using the passed in entitytype value
Public methodCreateFields
Creates, using the generated EntityFieldsFactory, the IEntityFields object for the entity to create. This method is used by internal code to create the fields object to store fetched data.
Public methodCreateHierarchyFields
Creates the hierarchy fields for the entity to which this factory belongs.
Public methodCreateHierarchyRelations
Creates the relations collection to the entity to join all targets so this entity can be fetched.
Public methodCreateHierarchyRelations(String)
Creates the relations collection to the entity to join all targets so this entity can be fetched. Uses the passed in objectAlias as alias for the elements in the relations.
Protected methodCreateImpl
Implementation of the Create() method. Called from Create()
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 methodGetEntityFactory
This method retrieves, using the InheritanceInfoprovider, the factory for the entity represented by the values passed in.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnEntityCreated
Method which is called from Create(), after the entity has been created. Receives the newly created entity.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIEntityFactoryCoreCreate
Creates a new entity instance.
Explicit interface implementationPrivate methodIEntityFactoryCoreCreate(IEntityFieldsCore)
Creates a new entity instance but uses a special constructor which will set the Fields object of the new entity instance to the passed in fields object. Implement this method to support multi-type in single table inheritance.
Explicit interface implementationPrivate methodIEntityFactoryCoreCreateEntityCollection
Creates a new IEntityCollectionCore implementing collection for the entity to which this factory belongs.
Explicit interface implementationPrivate methodIEntityFactoryCoreCreateFields
Creates, using the generated EntityFieldsFactory, the IEntityFieldsCore object for the entity to create. This method is used by internal code to create the fields object to store fetched data.
Explicit interface implementationPrivate methodIEntityFactoryCoreCreateHierarchyFields
Creates the hierarchy fields for the entity to which this factory belongs.
Explicit interface implementationPrivate methodIEntityFactoryCoreCreateHierarchyFields(String)
Creates the hierarchy fields and sets all field's actual containing object name to the name specified.
Explicit interface implementationPrivate propertyIEntityFactoryCoreForEntityType
Returns the actual .NET type this factory creates entities of
Explicit interface implementationPrivate methodIEntityFactoryCoreGetEntityFactory
This method retrieves, using the InheritanceInfoprovider, the factory for the entity represented by the values passed in.
Top
Remarks
SelfServicing specific
See Also