C# Class NClass.Core.Model

Inheritance: IModifiable
ファイルを表示 Open project: gbaychev/NClass

Protected Properties

Property Type Description
entities List
isDirty bool
loading bool
relationships List

Public Methods

Method Description
Deserialize ( XmlElement node ) : void
RemoveEntity ( IEntity entity ) : void
RemoveRelationship ( Relationship relationship ) : void
Serialize ( XmlElement node ) : void

Protected Methods

Method Description
AddEntity ( IEntity entity ) : void
ElementChanged ( object sender, EventArgs e ) : void
GetEntity ( string type ) : IEntity
IModifiable ( ) : void
LoadEntitites ( XmlNode root ) : void
LoadRelationships ( XmlNode root ) : void
OnDeserializing ( SerializeEventArgs e ) : void
OnEntityAdded ( EntityEventArgs e ) : void
OnEntityRemoved ( EntityEventArgs e ) : void
OnModified ( EventArgs e ) : void
OnRelationAdded ( RelationshipEventArgs e ) : void
OnRelationRemoved ( RelationshipEventArgs e ) : void
OnSerializing ( SerializeEventArgs e ) : void

Private Methods

Method Description
RemoveRelationships ( IEntity entity ) : void
SaveEntitites ( XmlElement node ) : void
SaveRelationships ( XmlNode root ) : void

Method Details

AddEntity() protected method

protected AddEntity ( IEntity entity ) : void
entity IEntity
return void

Deserialize() public method

public Deserialize ( XmlElement node ) : void
node System.Xml.XmlElement
return void

ElementChanged() protected method

protected ElementChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

GetEntity() protected abstract method

protected abstract GetEntity ( string type ) : IEntity
type string
return IEntity

IModifiable() protected method

protected IModifiable ( ) : void
return void

LoadEntitites() protected method

/// The save format is corrupt and could not be loaded. /// /// is null. ///
protected LoadEntitites ( XmlNode root ) : void
root System.Xml.XmlNode
return void

LoadRelationships() protected abstract method

/// The save format is corrupt and could not be loaded. /// /// is null. ///
protected abstract LoadRelationships ( XmlNode root ) : void
root System.Xml.XmlNode
return void

OnDeserializing() protected method

protected OnDeserializing ( SerializeEventArgs e ) : void
e SerializeEventArgs
return void

OnEntityAdded() protected method

protected OnEntityAdded ( EntityEventArgs e ) : void
e EntityEventArgs
return void

OnEntityRemoved() protected method

protected OnEntityRemoved ( EntityEventArgs e ) : void
e EntityEventArgs
return void

OnModified() protected method

protected OnModified ( EventArgs e ) : void
e System.EventArgs
return void

OnRelationAdded() protected method

protected OnRelationAdded ( RelationshipEventArgs e ) : void
e RelationshipEventArgs
return void

OnRelationRemoved() protected method

protected OnRelationRemoved ( RelationshipEventArgs e ) : void
e RelationshipEventArgs
return void

OnSerializing() protected method

protected OnSerializing ( SerializeEventArgs e ) : void
e SerializeEventArgs
return void

RemoveEntity() public method

public RemoveEntity ( IEntity entity ) : void
entity IEntity
return void

RemoveRelationship() public method

public RemoveRelationship ( Relationship relationship ) : void
relationship Relationship
return void

Serialize() public method

public Serialize ( XmlElement node ) : void
node System.Xml.XmlElement
return void

Property Details

entities protected_oe property

protected List entities
return List

isDirty protected_oe property

protected bool isDirty
return bool

loading protected_oe property

protected bool loading
return bool

relationships protected_oe property

protected List relationships
return List