C# 클래스 Habanero.BO.DataStoreInMemoryXmlReader

This class reads an xml stream and loads the objects in it into a DataStoreInMemory The class assumes you are loading afresh. Before doing the load, we recommend that you clear your BusinessObjectManager too so that you only have one instance of each object.
파일 보기 프로젝트 열기: Chillisoft/habanero 1 사용 예제들

공개 메소드들

메소드 설명
Read ( Stream stream ) : DataStoreInMemory

Reads from a stream that contains xml text. Creates the XmlReader that reads the stream and then uses a default IBusinessObjectXmlReader to create the objects from the xml. Any errors that occur when setting properties on objects will be added to the ReadResult property. Once this method returns, check the Successful flag of the ReadResult to see if there are errors, and check the Message flag to see what the errors were.

Read ( Stream stream, IBusinessObjectXmlReader boReader ) : DataStoreInMemory

Reads from a stream. Uses the given IBusinessObjectXmlReader to create the objects from the xml. Any errors that occur when setting properties on objects will be added to the ReadResult property. Once this method returns, check the Successful flag of the ReadResult to see if there are errors, and check the Message flag to see what the errors were.

Read ( XmlReader xmlReader ) : DataStoreInMemory

Reads from an XmlReader. Uses a default IBusinessObjectXmlReader to create the objects from the xml. Any errors that occur when setting properties on objects will be added to the ReadResult property. Once this method returns, check the Successful flag of the ReadResult to see if there are errors, and check the Message flag to see what the errors were.

Read ( XmlReader xmlReader, IBusinessObjectXmlReader boReader ) : DataStoreInMemory

Reads from a stream. Uses the given IBusinessObjectXmlReader to create the objects from the xml. Any errors that occur when setting properties on objects will be added to the ReadResult property. Once this method returns, check the Successful flag of the ReadResult to see if there are errors, and check the Message flag to see what the errors were.

Read ( string xml ) : DataStoreInMemory

Reads from a string that contains xml text. Creates the XmlReader that reads the string and then uses a default IBusinessObjectXmlReader to create the objects from the xml. Any errors that occur when setting properties on objects will be added to the ReadResult property. Once this method returns, check the Successful flag of the ReadResult to see if there are errors, and check the Message flag to see what the errors were.

보호된 메소드들

메소드 설명
ConfigureObjectAfterLoad ( IBusinessObject bo ) : IBusinessObject

Sets up the object after loading. In this case: 1. Sets the status of the object to not new, not dirty, not editing and not deleted. 2. Calls the BusinessObject.AfterLoad() method on the object 3. Backs up the property values, setting the persisted values of the properties

GetSettings ( ) : XmlReaderSettings

Returns the settings for the xml reader. Can be overridden to set your own settings.

비공개 메소드들

메소드 설명
BuildExceptionMessage ( IEnumerable propertyReadExceptions ) : string

메소드 상세

ConfigureObjectAfterLoad() 보호된 메소드

Sets up the object after loading. In this case: 1. Sets the status of the object to not new, not dirty, not editing and not deleted. 2. Calls the BusinessObject.AfterLoad() method on the object 3. Backs up the property values, setting the persisted values of the properties
protected ConfigureObjectAfterLoad ( IBusinessObject bo ) : IBusinessObject
bo IBusinessObject The object to configure
리턴 IBusinessObject

GetSettings() 보호된 메소드

Returns the settings for the xml reader. Can be overridden to set your own settings.
protected GetSettings ( ) : XmlReaderSettings
리턴 System.Xml.XmlReaderSettings

Read() 공개 메소드

Reads from a stream that contains xml text. Creates the XmlReader that reads the stream and then uses a default IBusinessObjectXmlReader to create the objects from the xml. Any errors that occur when setting properties on objects will be added to the ReadResult property. Once this method returns, check the Successful flag of the ReadResult to see if there are errors, and check the Message flag to see what the errors were.
public Read ( Stream stream ) : DataStoreInMemory
stream Stream The stream to read from. This stream must contain xml text
리턴 DataStoreInMemory

Read() 공개 메소드

Reads from a stream. Uses the given IBusinessObjectXmlReader to create the objects from the xml. Any errors that occur when setting properties on objects will be added to the ReadResult property. Once this method returns, check the Successful flag of the ReadResult to see if there are errors, and check the Message flag to see what the errors were.
public Read ( Stream stream, IBusinessObjectXmlReader boReader ) : DataStoreInMemory
stream Stream The stream to read the xml from
boReader IBusinessObjectXmlReader The to use. This object /// converts the xml data into business objects, so you can control how the objects are deserialised by /// creating your own.
리턴 DataStoreInMemory

Read() 공개 메소드

Reads from an XmlReader. Uses a default IBusinessObjectXmlReader to create the objects from the xml. Any errors that occur when setting properties on objects will be added to the ReadResult property. Once this method returns, check the Successful flag of the ReadResult to see if there are errors, and check the Message flag to see what the errors were.
public Read ( XmlReader xmlReader ) : DataStoreInMemory
xmlReader XmlReader The reader to use
리턴 DataStoreInMemory

Read() 공개 메소드

Reads from a stream. Uses the given IBusinessObjectXmlReader to create the objects from the xml. Any errors that occur when setting properties on objects will be added to the ReadResult property. Once this method returns, check the Successful flag of the ReadResult to see if there are errors, and check the Message flag to see what the errors were.
public Read ( XmlReader xmlReader, IBusinessObjectXmlReader boReader ) : DataStoreInMemory
xmlReader XmlReader The xml reader to use
boReader IBusinessObjectXmlReader The to use. This object /// converts the xml data into business objects, so you can control how the objects are deserialised by /// creating your own.
리턴 DataStoreInMemory

Read() 공개 메소드

Reads from a string that contains xml text. Creates the XmlReader that reads the string and then uses a default IBusinessObjectXmlReader to create the objects from the xml. Any errors that occur when setting properties on objects will be added to the ReadResult property. Once this method returns, check the Successful flag of the ReadResult to see if there are errors, and check the Message flag to see what the errors were.
public Read ( string xml ) : DataStoreInMemory
xml string The xml to read
리턴 DataStoreInMemory