Basic Structure for adding Students and BookTypes
This commit is contained in:
18
BuechermarktClient/Models/BookType.cs
Normal file
18
BuechermarktClient/Models/BookType.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace BuechermarktClient.Models
|
||||
{
|
||||
|
||||
public class BookType
|
||||
{
|
||||
[BsonId]
|
||||
public ObjectId ID { get; set; }
|
||||
|
||||
[BsonElement("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[BsonElement("isbn")]
|
||||
public string ISBN { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user