automated-testing-demo/shared/Model/DataModel.cs
2024-06-14 16:06:24 -05:00

24 lines
450 B
C#

using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace Model
{
public class DataModel
{
public DataModel(string id)
{
this.id = id;
}
public DataModel()
{
this.id = ObjectId.GenerateNewId().ToString();
}
[BsonId]
public string id { get; set; }
[BsonElement("message")]
public string? message { get; set; }
}
}