Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using MongoDB.Bson;
- using MongoDB.Bson.Serialization.Attributes;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.Linq;
- using System.Web;
- namespace SurffingSite.Models
- {
- public class Products
- {
- [Required]
- [BsonId]
- public int Id {get; set;}
- [BsonElement("Mail")]
- public String Mail { get; set; }
- [BsonElement("ProductName")]
- public String ProductName { get; set; }
- [BsonElement("Category")]
- public String Category { get; set; }
- [BsonElement("Description")]
- public String Description { get; set; }
- [BsonElement("Price")]
- public int Price { get; set; }
- [BsonElement("AvailableQuantity")]
- public int AvailableQuantity { get; set; }
- [BsonElement("Picture")]
- public String Picture { get; set; }
- [BsonElement("Size")]
- public String Size { get; set; }
- [BsonElement("ReqPrice")]
- public int ReqPrice { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement