Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace DataModels
- {
- public class User
- {
- public ObjectId _id { get; set; }
- public string Username { get; set; } = "";
- public string Password { get; set; } = "";
- public string Client { get; set; } = "";
- public Characters Characters { get; set; }
- public User()
- {
- _id = ObjectId.GenerateNewId();
- }
- public User(ObjectId Id, string username, string password, string client)
- {
- this._id = Id;
- this.Username = username;
- this.Password = password;
- this.Client = client;
- }
- }
- public class Characters
- {
- public ObjectId _id { get; set; }
- public string FirstName { get; set; } = "";
- public string LastName { get; set; } = "";
- public Characters()
- {
- _id = ObjectId.GenerateNewId();
- }
- public Characters(ObjectId Id, string firstname, string lastname)
- {
- this._id = Id;
- this.FirstName = firstname;
- this.LastName = lastname;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement