C# Class NetMud.Data.System.BackingDataPartial

Partial for all backing data
Inheritance: SerializableDataPartial, IData
Datei anzeigen Open project: SwiftAusterity/NetMud

Private Properties

Property Type Description
GetNextId void

Public Methods

Method Description
CompareTo ( IData other ) : int

-99 = null input -1 = wrong type 0 = same type, wrong id 1 = same reference (same id, same type)

Create ( ) : IData

Add it to the cache and save it to the file system

Equals ( IData other ) : bool

Compares this object to another one to see if they are the same object

FitnessReport ( ) : IList

Gets the errors for data fitness

Remove ( ) : bool

Remove this object from the db permenantly

Save ( ) : bool

Update the field data for this object to the db

Private Methods

Method Description
GetNextId ( ) : void

Grabs the next ID in the chain of all objects of this type.

Method Details

CompareTo() public method

-99 = null input -1 = wrong type 0 = same type, wrong id 1 = same reference (same id, same type)
public CompareTo ( IData other ) : int
other IData
return int

Create() public method

Add it to the cache and save it to the file system
public Create ( ) : IData
return IData

Equals() public method

Compares this object to another one to see if they are the same object
public Equals ( IData other ) : bool
other IData the object to compare to
return bool

FitnessReport() public method

Gets the errors for data fitness
public FitnessReport ( ) : IList
return IList

Remove() public method

Remove this object from the db permenantly
public Remove ( ) : bool
return bool

Save() public method

Update the field data for this object to the db
public Save ( ) : bool
return bool