-
Notifications
You must be signed in to change notification settings - Fork 1
Models
n-Ultima edited this page Jul 26, 2021
·
1 revision
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.
Join the Discord Server for support regarding Doraemon!