Table of Contents

Class DatabaseObject

Namespace
Playnite.SDK.Models
Assembly
Playnite.SDK.dll

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

Guid

Name

Gets or sets name.

public string Name { get; set; }

Property Value

string

Methods

CompareTo(object)

Compares Names of database object.

public int CompareTo(object obj)

Parameters

obj object

Returns

int

CopyDiffTo(object)

Copies differential properties to target object intance.

public virtual void CopyDiffTo(object target)

Parameters

target object

Target 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

bool

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.