Basic Structure for adding Students and BookTypes
This commit is contained in:
32
BuechermarktClient/Models/Book.cs
Normal file
32
BuechermarktClient/Models/Book.cs
Normal file
@ -0,0 +1,32 @@
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
using MongoDB.Bson;
|
||||
using System;
|
||||
|
||||
namespace BuechermarktClient.Models
|
||||
{
|
||||
public class Book
|
||||
{
|
||||
[BsonId]
|
||||
public ObjectId ID { get; set; }
|
||||
|
||||
[BsonElement("student")]
|
||||
public ObjectId Student { get; set; }
|
||||
|
||||
[BsonElement("book_type")]
|
||||
public ObjectId BookType { get; set; }
|
||||
|
||||
[BsonElement("price")]
|
||||
public double Price { get; set; }
|
||||
|
||||
[BsonElement("state")]
|
||||
public BookState State { get; set; }
|
||||
|
||||
[BsonElement("label_id")]
|
||||
public string LabelId { get; set; }
|
||||
}
|
||||
|
||||
public enum BookState
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user