Answer the question
In order to leave comments, you need to log in
How to create a database for a chatbot in C# using Visual Studio?
Hello. How to create a database for a chatbot in C# using Visual Studio? Please provide some documentation on this topic.
Answer the question
In order to leave comments, you need to log in
For example like this:
public class MyDB
{
public List<Message> Messages = new List<Message>();
public List<User> Users = new List<User>();
}
public class Message
{
public DateTime Time = new DateTime();
public string Text;
public ulong UserID;
public Message(ulong userId, string text)
{
Text = text;
UserID = userId;
}
}
public class User
{
private static ulong Cnt = 0;
public ulong Id;
public string Name;
public User(string name)
{
Name = name;
Id = ++Cnt;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question