C# 클래스 MonoSoftware.MonoX.DAL.EntityClasses.OaConsumerEntity

상속: CommonEntityBase
파일 보기 프로젝트 열기: MonoSoftware/MonoX-Data-Access-Layer 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetObjectData void
GetRelationsForField RelationCollection
InitClassEmpty void
InitClassMembers void
OaConsumerEntity System.Runtime.Serialization
OaConsumerEntity System.Runtime.Serialization
SetupCustomPropertyHashtables void

공개 메소드들

메소드 설명
GetRelationInfoOaTokens ( ) : IRelationPredicateBucket

Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'OaToken' to this entity.

GetRelationInfoSnEvents ( ) : IRelationPredicateBucket

Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SnEvent' to this entity.

OaConsumerEntity ( IEntityFields2 fields ) : System.Runtime.Serialization

CTor

For framework usage.

OaConsumerEntity ( IValidator validator ) : System.Runtime.Serialization

CTor

OaConsumerEntity ( System id ) : System.Runtime.Serialization

CTor

The entity is not fetched by this constructor. Use a DataAccessAdapter for that.

OaConsumerEntity ( System id, IValidator validator ) : System.Runtime.Serialization

CTor

The entity is not fetched by this constructor. Use a DataAccessAdapter for that.

보호된 메소드들

메소드 설명
AddToMemberEntityCollectionsQueue ( Queue collectionsQueue ) : void

Adds the member collections to the collections queue (base first)

CheckOneWayRelations ( string propertyName ) : bool

Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation

CreateEntityFactory ( ) : IEntityFactory2

Creates a new instance of the factory related to this entity

CreateMemberEntityCollectionsQueue ( Queue collectionsQueue, Queue requiredQueue ) : void

Creates the member entity collections queue.

GetAllRelations ( ) : List

Gets a list of all the EntityRelation objects the type of this instance has.

GetDependentRelatedEntities ( ) : List

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.

GetDependingRelatedEntities ( ) : List

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.

GetFromMemberEntityCollectionsQueue ( Queue collectionsQueue ) : void

Gets the member collections queue from the queue (base first)

GetMemberEntityCollections ( ) : List

Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned.

GetRelatedData ( ) : object>.Dictionary

Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element.

GetRelationsForFieldOfType ( string fieldName ) : RelationCollection

Gets the relation objects which represent the relation the fieldName specified is mapped on.

HasPopulatedMemberEntityCollections ( ) : bool

Determines whether the entity has populated member collections

SetRelatedEntity ( IEntityCore relatedEntity, string fieldName ) : void

Sets the internal parameter related to the fieldname passed to the instance relatedEntity.

SetRelatedEntityProperty ( string propertyName, IEntityCore entity ) : void

Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection.

Used by prefetch path logic.

UnsetRelatedEntity ( IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne ) : void

Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity()

비공개 메소드들

메소드 설명
GetObjectData ( SerializationInfo info, StreamingContext context ) : void
GetRelationsForField ( string fieldName ) : RelationCollection

Gets the relation objects which represent the relation the fieldName specified is mapped on.

InitClassEmpty ( IValidator validator, IEntityFields2 fields ) : void

Initializes the class with empty data, as if it is a new Entity.

InitClassMembers ( ) : void

Initializes the class members

OaConsumerEntity ( ) : System.Runtime.Serialization

Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed.

OaConsumerEntity ( SerializationInfo info, StreamingContext context ) : System.Runtime.Serialization
SetupCustomPropertyHashtables ( ) : void

Initializes the hashtables for the entity type and entity field custom properties.

메소드 상세

AddToMemberEntityCollectionsQueue() 보호된 메소드

Adds the member collections to the collections queue (base first)
protected AddToMemberEntityCollectionsQueue ( Queue collectionsQueue ) : void
collectionsQueue Queue The collections queue.
리턴 void

CheckOneWayRelations() 보호된 메소드

Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation
protected CheckOneWayRelations ( string propertyName ) : bool
propertyName string Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided
리턴 bool

CreateEntityFactory() 보호된 메소드

Creates a new instance of the factory related to this entity
protected CreateEntityFactory ( ) : IEntityFactory2
리턴 IEntityFactory2

CreateMemberEntityCollectionsQueue() 보호된 메소드

Creates the member entity collections queue.
protected CreateMemberEntityCollectionsQueue ( Queue collectionsQueue, Queue requiredQueue ) : void
collectionsQueue Queue The collections queue.
requiredQueue Queue The required queue.
리턴 void

GetAllRelations() 보호된 메소드

Gets a list of all the EntityRelation objects the type of this instance has.
protected GetAllRelations ( ) : List
리턴 List

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.
protected GetDependentRelatedEntities ( ) : List
리턴 List

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.
protected GetDependingRelatedEntities ( ) : List
리턴 List

GetFromMemberEntityCollectionsQueue() 보호된 메소드

Gets the member collections queue from the queue (base first)
protected GetFromMemberEntityCollectionsQueue ( Queue collectionsQueue ) : void
collectionsQueue Queue The collections queue.
리턴 void

GetMemberEntityCollections() 보호된 메소드

Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned.
protected GetMemberEntityCollections ( ) : List
리턴 List

GetRelatedData() 보호된 메소드

Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element.
protected GetRelatedData ( ) : object>.Dictionary
리턴 object>.Dictionary

GetRelationInfoOaTokens() 공개 메소드

Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'OaToken' to this entity.
public GetRelationInfoOaTokens ( ) : IRelationPredicateBucket
리턴 IRelationPredicateBucket

GetRelationInfoSnEvents() 공개 메소드

Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SnEvent' to this entity.
public GetRelationInfoSnEvents ( ) : IRelationPredicateBucket
리턴 IRelationPredicateBucket

GetRelationsForFieldOfType() 보호된 메소드

Gets the relation objects which represent the relation the fieldName specified is mapped on.
protected GetRelationsForFieldOfType ( string fieldName ) : RelationCollection
fieldName string Name of the field mapped onto the relation of which the relation objects have to be obtained.
리턴 RelationCollection

HasPopulatedMemberEntityCollections() 보호된 메소드

Determines whether the entity has populated member collections
protected HasPopulatedMemberEntityCollections ( ) : bool
리턴 bool

OaConsumerEntity() 공개 메소드

CTor
For framework usage.
public OaConsumerEntity ( IEntityFields2 fields ) : System.Runtime.Serialization
fields IEntityFields2 Fields object to set as the fields for this entity.
리턴 System.Runtime.Serialization

OaConsumerEntity() 공개 메소드

CTor
public OaConsumerEntity ( IValidator validator ) : System.Runtime.Serialization
validator IValidator The custom validator object for this OaConsumerEntity
리턴 System.Runtime.Serialization

OaConsumerEntity() 공개 메소드

CTor
The entity is not fetched by this constructor. Use a DataAccessAdapter for that.
public OaConsumerEntity ( System id ) : System.Runtime.Serialization
id System PK value for OaConsumer which data should be fetched into this OaConsumer object
리턴 System.Runtime.Serialization

OaConsumerEntity() 공개 메소드

CTor
The entity is not fetched by this constructor. Use a DataAccessAdapter for that.
public OaConsumerEntity ( System id, IValidator validator ) : System.Runtime.Serialization
id System PK value for OaConsumer which data should be fetched into this OaConsumer object
validator IValidator The custom validator object for this OaConsumerEntity
리턴 System.Runtime.Serialization

SetRelatedEntity() 보호된 메소드

Sets the internal parameter related to the fieldname passed to the instance relatedEntity.
protected SetRelatedEntity ( IEntityCore relatedEntity, string fieldName ) : void
relatedEntity IEntityCore Instance to set as the related entity of type entityType
fieldName string Name of field mapped onto the relation which resolves in the instance relatedEntity
리턴 void

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.
Used by prefetch path logic.
protected SetRelatedEntityProperty ( string propertyName, IEntityCore entity ) : void
propertyName string Name of the property.
entity IEntityCore Entity to set as an related entity
리턴 void

UnsetRelatedEntity() 보호된 메소드

Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity()
protected UnsetRelatedEntity ( IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne ) : void
relatedEntity IEntityCore Instance to unset as the related entity of type entityType
fieldName string Name of field mapped onto the relation which resolves in the instance relatedEntity
signalRelatedEntityManyToOne bool if set to true it will notify the manytoone side, if applicable.
리턴 void