mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 18:28:27 -04:00
- Database namespace is now NadekoBot.Db
- Db related code is now in src/NadekoBot/Db - Finished major part of the db refactor, but many optimizations are left to be made
This commit is contained in:
25
src/NadekoBot/Db/Models/CommandAlias.cs
Normal file
25
src/NadekoBot/Db/Models/CommandAlias.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
namespace NadekoBot.Core.Services.Database.Models
|
||||
{
|
||||
public class CommandAlias : DbEntity
|
||||
{
|
||||
public string Trigger { get; set; }
|
||||
public string Mapping { get; set; }
|
||||
|
||||
//// override object.Equals
|
||||
//public override bool Equals(object obj)
|
||||
//{
|
||||
// if (obj == null || GetType() != obj.GetType())
|
||||
// {
|
||||
// return false;
|
||||
// }
|
||||
|
||||
// return ((CommandAlias)obj).Trigger.Trim().ToLowerInvariant() == Trigger.Trim().ToLowerInvariant();
|
||||
//}
|
||||
|
||||
//// override object.GetHashCode
|
||||
//public override int GetHashCode()
|
||||
//{
|
||||
// return Trigger.Trim().ToLowerInvariant().GetHashCode();
|
||||
//}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user