init commit

This commit is contained in:
2022-08-04 19:21:55 -05:00
commit 6c3f574fd9
65 changed files with 1818 additions and 0 deletions

21
APITest2/Models/Book.cs Normal file
View File

@@ -0,0 +1,21 @@
using System;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace APITest2.Models;
public class Book
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string? Id { get; set; }
[BsonElement("Name")]
public string BookName { get; set; } = null!;
public decimal Price { get; set; }
public string Category { get; set; } = null!;
public string Author { get; set; } = null!;
}