Click or drag to resize
IEntityFactory2 Interface
Interface for EntityFactory2 objects used by several methods which have to create entity objects on the fly. Factories have to add a valid validator object to the entities. Adapter specific

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.3.0.0 (5.3.0)
Syntax
public interface IEntityFactory2 : IEntityFactoryCore

The IEntityFactory2 type exposes the following members.

Properties
  NameDescription
Public propertyForEntityName
returns the name of the entity this factory is for, e.g. "EmployeeEntity"
(Inherited from IEntityFactoryCore.)
Top
Methods
  NameDescription
Public methodCreate
Creates a new IEntity2 instance
Public methodCreate(IEntityFields2)
Creates a new IEntity2 instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. Implement this method to support multi-type in single table inheritance.
Public methodCreate(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.
(Inherited from IEntityFactoryCore.)
Public methodCreateEntityCollection
Creates a new generic EntityCollection(Of T) for the entity to which this factory belongs.
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 IEntityFields2 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 methodCreateHierarchyFields(String)
Creates the hierarchy fields and sets all field's actual containing object name to the name specified.
(Inherited from IEntityFactoryCore.)
Public methodCreateHierarchyRelations
Creates the relations collection to the entity to join all targets so this entity can be fetched. Uses string.Empty as alias.
(Inherited from IEntityFactoryCore.)
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.
(Inherited from IEntityFactoryCore.)
Public methodGetEntityFactory
This method retrieves, using the InheritanceInfoprovider, the factory for the entity represented by the values passed in.
Public methodGetEntityTypeFilter(Boolean)
Gets a predicateexpression which filters on the entity with type belonging to this factory. Uses string.Empty for object alias
Public methodGetEntityTypeFilter(Boolean, String)
Gets a predicateexpression which filters on the entity with type belonging to this factory. Uses the passed in objectAlias for aliasing the elements in the filters.
Top
See Also