C# Class MonoSoftware.MonoX.DAL.EntityClasses.SnEventEntity

Inheritance: CommonEntityBase
Afficher le fichier Open project: MonoSoftware/MonoX-Data-Access-Layer

Private Properties

Свойство Type Description
DesetupSyncAspnetUsers void
DesetupSyncBlogPost void
DesetupSyncFriendAspnetUsers void
DesetupSyncOaConsumer void
DesetupSyncSnAlbum void
DesetupSyncSnDiscussionBoard void
DesetupSyncSnDiscussionTopic void
DesetupSyncSnEventType void
DesetupSyncSnFile void
DesetupSyncSnGroup void
DesetupSyncSnNote void
GetObjectData void
GetRelationsForField RelationCollection
InitClassEmpty void
InitClassMembers void
OnAspnetUsersPropertyChanged void
OnBlogPostPropertyChanged void
OnFriendAspnetUsersPropertyChanged void
OnOaConsumerPropertyChanged void
OnSnAlbumPropertyChanged void
OnSnDiscussionBoardPropertyChanged void
OnSnDiscussionTopicPropertyChanged void
OnSnEventTypePropertyChanged void
OnSnFilePropertyChanged void
OnSnGroupPropertyChanged void
OnSnNotePropertyChanged void
SetupCustomPropertyHashtables void
SetupSyncAspnetUsers void
SetupSyncBlogPost void
SetupSyncFriendAspnetUsers void
SetupSyncOaConsumer void
SetupSyncSnAlbum void
SetupSyncSnDiscussionBoard void
SetupSyncSnDiscussionTopic void
SetupSyncSnEventType void
SetupSyncSnFile void
SetupSyncSnGroup void
SetupSyncSnNote void
SnEventEntity System.Runtime.Serialization
SnEventEntity System.Runtime.Serialization

Méthodes publiques

Méthode Description
GetRelationInfoAspnetUsers ( ) : IRelationPredicateBucket

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

GetRelationInfoBlogPost ( ) : IRelationPredicateBucket

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

GetRelationInfoFriendAspnetUsers ( ) : IRelationPredicateBucket

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

GetRelationInfoOaConsumer ( ) : IRelationPredicateBucket

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

GetRelationInfoSnAlbum ( ) : IRelationPredicateBucket

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

GetRelationInfoSnDiscussionBoard ( ) : IRelationPredicateBucket

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

GetRelationInfoSnDiscussionTopic ( ) : IRelationPredicateBucket

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

GetRelationInfoSnEventType ( ) : IRelationPredicateBucket

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

GetRelationInfoSnFile ( ) : IRelationPredicateBucket

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

GetRelationInfoSnGroup ( ) : IRelationPredicateBucket

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

GetRelationInfoSnNote ( ) : IRelationPredicateBucket

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

SnEventEntity ( IEntityFields2 fields ) : System.Runtime.Serialization

CTor

For framework usage.

SnEventEntity ( IValidator validator ) : System.Runtime.Serialization

CTor

SnEventEntity ( System id ) : System.Runtime.Serialization

CTor

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

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

CTor

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

Méthodes protégées

Méthode Description
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

PerformDesyncSetupFKFieldChange ( int fieldIndex ) : void

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.

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()

Private Methods

Méthode Description
DesetupSyncAspnetUsers ( bool signalRelatedEntity, bool resetFKFields ) : void

Removes the sync logic for member _aspnetUsers

DesetupSyncBlogPost ( bool signalRelatedEntity, bool resetFKFields ) : void

Removes the sync logic for member _blogPost

DesetupSyncFriendAspnetUsers ( bool signalRelatedEntity, bool resetFKFields ) : void

Removes the sync logic for member _friendAspnetUsers

DesetupSyncOaConsumer ( bool signalRelatedEntity, bool resetFKFields ) : void

Removes the sync logic for member _oaConsumer

DesetupSyncSnAlbum ( bool signalRelatedEntity, bool resetFKFields ) : void

Removes the sync logic for member _snAlbum

DesetupSyncSnDiscussionBoard ( bool signalRelatedEntity, bool resetFKFields ) : void

Removes the sync logic for member _snDiscussionBoard

DesetupSyncSnDiscussionTopic ( bool signalRelatedEntity, bool resetFKFields ) : void

Removes the sync logic for member _snDiscussionTopic

DesetupSyncSnEventType ( bool signalRelatedEntity, bool resetFKFields ) : void

Removes the sync logic for member _snEventType

DesetupSyncSnFile ( bool signalRelatedEntity, bool resetFKFields ) : void

Removes the sync logic for member _snFile

DesetupSyncSnGroup ( bool signalRelatedEntity, bool resetFKFields ) : void

Removes the sync logic for member _snGroup

DesetupSyncSnNote ( bool signalRelatedEntity, bool resetFKFields ) : void

Removes the sync logic for member _snNote

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

OnAspnetUsersPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles property change events of properties in a related entity.

OnBlogPostPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles property change events of properties in a related entity.

OnFriendAspnetUsersPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles property change events of properties in a related entity.

OnOaConsumerPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles property change events of properties in a related entity.

OnSnAlbumPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles property change events of properties in a related entity.

OnSnDiscussionBoardPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles property change events of properties in a related entity.

OnSnDiscussionTopicPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles property change events of properties in a related entity.

OnSnEventTypePropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles property change events of properties in a related entity.

OnSnFilePropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles property change events of properties in a related entity.

OnSnGroupPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles property change events of properties in a related entity.

OnSnNotePropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles property change events of properties in a related entity.

SetupCustomPropertyHashtables ( ) : void

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

SetupSyncAspnetUsers ( IEntityCore relatedEntity ) : void

setups the sync logic for member _aspnetUsers

SetupSyncBlogPost ( IEntityCore relatedEntity ) : void

setups the sync logic for member _blogPost

SetupSyncFriendAspnetUsers ( IEntityCore relatedEntity ) : void

setups the sync logic for member _friendAspnetUsers

SetupSyncOaConsumer ( IEntityCore relatedEntity ) : void

setups the sync logic for member _oaConsumer

SetupSyncSnAlbum ( IEntityCore relatedEntity ) : void

setups the sync logic for member _snAlbum

SetupSyncSnDiscussionBoard ( IEntityCore relatedEntity ) : void

setups the sync logic for member _snDiscussionBoard

SetupSyncSnDiscussionTopic ( IEntityCore relatedEntity ) : void

setups the sync logic for member _snDiscussionTopic

SetupSyncSnEventType ( IEntityCore relatedEntity ) : void

setups the sync logic for member _snEventType

SetupSyncSnFile ( IEntityCore relatedEntity ) : void

setups the sync logic for member _snFile

SetupSyncSnGroup ( IEntityCore relatedEntity ) : void

setups the sync logic for member _snGroup

SetupSyncSnNote ( IEntityCore relatedEntity ) : void

setups the sync logic for member _snNote

SnEventEntity ( ) : 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.

SnEventEntity ( SerializationInfo info, StreamingContext context ) : System.Runtime.Serialization

Method Details

AddToMemberEntityCollectionsQueue() protected méthode

Adds the member collections to the collections queue (base first)
protected AddToMemberEntityCollectionsQueue ( Queue collectionsQueue ) : void
collectionsQueue Queue The collections queue.
Résultat void

CheckOneWayRelations() protected méthode

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
Résultat bool

CreateEntityFactory() protected méthode

Creates a new instance of the factory related to this entity
protected CreateEntityFactory ( ) : IEntityFactory2
Résultat IEntityFactory2

CreateMemberEntityCollectionsQueue() protected méthode

Creates the member entity collections queue.
protected CreateMemberEntityCollectionsQueue ( Queue collectionsQueue, Queue requiredQueue ) : void
collectionsQueue Queue The collections queue.
requiredQueue Queue The required queue.
Résultat void

GetAllRelations() protected méthode

Gets a list of all the EntityRelation objects the type of this instance has.
protected GetAllRelations ( ) : List
Résultat List

GetDependentRelatedEntities() protected méthode

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
Résultat List

GetDependingRelatedEntities() protected méthode

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
Résultat List

GetFromMemberEntityCollectionsQueue() protected méthode

Gets the member collections queue from the queue (base first)
protected GetFromMemberEntityCollectionsQueue ( Queue collectionsQueue ) : void
collectionsQueue Queue The collections queue.
Résultat void

GetMemberEntityCollections() protected méthode

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

GetRelatedData() protected méthode

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
Résultat object>.Dictionary

GetRelationInfoAspnetUsers() public méthode

Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'AspnetUsers' to this entity.
public GetRelationInfoAspnetUsers ( ) : IRelationPredicateBucket
Résultat IRelationPredicateBucket

GetRelationInfoBlogPost() public méthode

Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'BlogPost' to this entity.
public GetRelationInfoBlogPost ( ) : IRelationPredicateBucket
Résultat IRelationPredicateBucket

GetRelationInfoFriendAspnetUsers() public méthode

Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'AspnetUsers' to this entity.
public GetRelationInfoFriendAspnetUsers ( ) : IRelationPredicateBucket
Résultat IRelationPredicateBucket

GetRelationInfoOaConsumer() public méthode

Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'OaConsumer' to this entity.
public GetRelationInfoOaConsumer ( ) : IRelationPredicateBucket
Résultat IRelationPredicateBucket

GetRelationInfoSnAlbum() public méthode

Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SnAlbum' to this entity.
public GetRelationInfoSnAlbum ( ) : IRelationPredicateBucket
Résultat IRelationPredicateBucket

GetRelationInfoSnDiscussionBoard() public méthode

Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SnDiscussionBoard' to this entity.
public GetRelationInfoSnDiscussionBoard ( ) : IRelationPredicateBucket
Résultat IRelationPredicateBucket

GetRelationInfoSnDiscussionTopic() public méthode

Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SnDiscussionTopic' to this entity.
public GetRelationInfoSnDiscussionTopic ( ) : IRelationPredicateBucket
Résultat IRelationPredicateBucket

GetRelationInfoSnEventType() public méthode

Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SnEventType' to this entity.
public GetRelationInfoSnEventType ( ) : IRelationPredicateBucket
Résultat IRelationPredicateBucket

GetRelationInfoSnFile() public méthode

Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SnFile' to this entity.
public GetRelationInfoSnFile ( ) : IRelationPredicateBucket
Résultat IRelationPredicateBucket

GetRelationInfoSnGroup() public méthode

Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SnGroup' to this entity.
public GetRelationInfoSnGroup ( ) : IRelationPredicateBucket
Résultat IRelationPredicateBucket

GetRelationInfoSnNote() public méthode

Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SnNote' to this entity.
public GetRelationInfoSnNote ( ) : IRelationPredicateBucket
Résultat IRelationPredicateBucket

GetRelationsForFieldOfType() protected méthode

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.
Résultat RelationCollection

HasPopulatedMemberEntityCollections() protected méthode

Determines whether the entity has populated member collections
protected HasPopulatedMemberEntityCollections ( ) : bool
Résultat bool

PerformDesyncSetupFKFieldChange() protected méthode

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.
protected PerformDesyncSetupFKFieldChange ( int fieldIndex ) : void
fieldIndex int The fieldindex.
Résultat void

SetRelatedEntity() protected méthode

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
Résultat void

SetRelatedEntityProperty() protected méthode

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
Résultat void

SnEventEntity() public méthode

CTor
For framework usage.
public SnEventEntity ( IEntityFields2 fields ) : System.Runtime.Serialization
fields IEntityFields2 Fields object to set as the fields for this entity.
Résultat System.Runtime.Serialization

SnEventEntity() public méthode

CTor
public SnEventEntity ( IValidator validator ) : System.Runtime.Serialization
validator IValidator The custom validator object for this SnEventEntity
Résultat System.Runtime.Serialization

SnEventEntity() public méthode

CTor
The entity is not fetched by this constructor. Use a DataAccessAdapter for that.
public SnEventEntity ( System id ) : System.Runtime.Serialization
id System PK value for SnEvent which data should be fetched into this SnEvent object
Résultat System.Runtime.Serialization

SnEventEntity() public méthode

CTor
The entity is not fetched by this constructor. Use a DataAccessAdapter for that.
public SnEventEntity ( System id, IValidator validator ) : System.Runtime.Serialization
id System PK value for SnEvent which data should be fetched into this SnEvent object
validator IValidator The custom validator object for this SnEventEntity
Résultat System.Runtime.Serialization

UnsetRelatedEntity() protected méthode

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.
Résultat void