mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 10:18: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:
19
src/NadekoBot/Db/Models/DelMsgOnCmdChannel.cs
Normal file
19
src/NadekoBot/Db/Models/DelMsgOnCmdChannel.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace NadekoBot.Core.Services.Database.Models
|
||||
{
|
||||
public class DelMsgOnCmdChannel : DbEntity
|
||||
{
|
||||
public ulong ChannelId { get; set; }
|
||||
public bool State { get; set; }
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return ChannelId.GetHashCode();
|
||||
}
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
return obj is DelMsgOnCmdChannel x
|
||||
&& x.ChannelId == ChannelId;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user