Basic Structure for adding Students and BookTypes

This commit is contained in:
2017-05-16 03:04:42 +02:00
commit 90b097f73d
110 changed files with 296056 additions and 0 deletions

View 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
{
}
}

View 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; }
}
}

View File

@ -0,0 +1,30 @@
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;
using System;
namespace BuechermarktClient.Models
{
public class Student
{
[BsonId]
public ObjectId ID { get; set; }
[BsonElement("forname")]
public string Forname { get; set; }
[BsonElement("lastname")]
public string Lastname { get; set; }
[BsonElement("email")]
public string EMail { get; set; }
[BsonElement("phone_number")]
public string PhoneNumber { get; set; }
[BsonElement("label_id")]
public string LabelId { get; set; }
[BsonElement("form")]
public string Form { get; set; }
}
}