Class DatabaseObject
Represents base database object item.
public class DatabaseObject : ObservableObject, INotifyPropertyChanged, IComparable, IIdentifiable
- Inheritance
-
DatabaseObject
- Implements
- Derived
- Inherited Members
Constructors
DatabaseObject()
Creates new instance of DatabaseObject.
public DatabaseObject()
Properties
Id
Gets or sets identifier of database object.
public Guid Id { get; set; }
Property Value
Name
Gets or sets name.
public string Name { get; set; }
Property Value
Methods
CompareTo(object)
Compares Names of database object.
public int CompareTo(object obj)
Parameters
obj
object
Returns
CopyDiffTo(object)
Copies differential properties to target object intance.
public virtual void CopyDiffTo(object target)
Parameters
target
objectTarget object instance to receive new data.
Equals(object)
DO NOT use for actual equality check, this only checks if db Ids are equal!
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.