You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
n-Ultima edited this page Jul 26, 2021
·
1 revision
Models
Doraemon utilizes models for database usage, and has quite a few. Each model is also accompanied by their own "CreationData" model, which can be converted into their respective entity using ToEntity() on the creation data. For example:
var data = new PingRoleCreationData()
{
Id = role.Id,
Name = role.Name
};
var entity = data.ToEntity(); // Creates a new PingRole
Models are divided into 3 categories, Core, Moderation, and Promotion. All manipulation of data involving these models are handled by our repositories, whose methods get called by our services.