using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace BookShelfMongoDB
{
    public class Book
    {
        [BsonId]
        [BsonRepresentation(BsonType.ObjectId)]
        public int Id { get; set; }
        public string Name { get; set; }
        public decimal Price { get; set; }
        public string Category { get; set; }
        public string Author { get; set; }
    }
}
