-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding namespace to Database classes was a bad idea
- Loading branch information
Showing
2 changed files
with
29 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,33 @@ | ||
using System; | ||
|
||
namespace UPBot { | ||
public class TagBase : Entity { | ||
[Key] public ulong Guild; | ||
[Key] public string Topic; | ||
public string Alias1; | ||
public string Alias2; | ||
public string Alias3; | ||
[Comment] public string Information; | ||
public string Author; | ||
public long ColorOfTheme; | ||
public DateTime timeOfCreation; | ||
public string thumbnailLink; | ||
public string AuthorIcon; | ||
public string imageLink; | ||
public class TagBase : Entity { | ||
[Key] public ulong Guild; | ||
[Key] public string Topic; | ||
public string Alias1; | ||
public string Alias2; | ||
public string Alias3; | ||
[Comment] public string Information; | ||
public string Author; | ||
public long ColorOfTheme; | ||
public DateTime timeOfCreation; | ||
public string thumbnailLink; | ||
public string AuthorIcon; | ||
public string imageLink; | ||
|
||
public TagBase() { } | ||
public TagBase() { } | ||
|
||
public TagBase(ulong guild, string topic, string info, string author, string authorIcon, int colorOfTheme, DateTime time, string thumbnailLink, string imageLink) { | ||
Guild = guild; | ||
Topic = topic; | ||
Alias1 = null; | ||
Alias2 = null; | ||
Alias3 = null; | ||
Information = info; | ||
Author = author; | ||
AuthorIcon = authorIcon; | ||
ColorOfTheme = colorOfTheme; | ||
timeOfCreation = time; | ||
this.thumbnailLink = thumbnailLink; | ||
this.imageLink = imageLink; | ||
} | ||
public TagBase(ulong guild, string topic, string info, string author, string authorIcon, int colorOfTheme, DateTime time, string thumbnailLink, string imageLink) { | ||
Guild = guild; | ||
Topic = topic; | ||
Alias1 = null; | ||
Alias2 = null; | ||
Alias3 = null; | ||
Information = info; | ||
Author = author; | ||
AuthorIcon = authorIcon; | ||
ColorOfTheme = colorOfTheme; | ||
timeOfCreation = time; | ||
this.thumbnailLink = thumbnailLink; | ||
this.imageLink = imageLink; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters