Advertisement
Guest User

fds

a guest
Jun 23rd, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.07 KB | None | 0 0
  1. using MongoDB.Bson;
  2. using MongoDB.Bson.Serialization.Attributes;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.Linq;
  7. using System.Web;
  8.  
  9. namespace SurffingSite.Models
  10. {
  11.     public class Products
  12.     {
  13.         [Required]
  14.         [BsonId]
  15.         public int Id {get; set;}
  16.  
  17.         [BsonElement("Mail")]
  18.         public String Mail { get; set; }
  19.  
  20.         [BsonElement("ProductName")]
  21.         public String ProductName { get; set; }
  22.  
  23.         [BsonElement("Category")]
  24.         public String Category { get; set; }
  25.  
  26.         [BsonElement("Description")]
  27.         public String Description { get; set; }
  28.  
  29.         [BsonElement("Price")]
  30.         public  int Price { get; set; }
  31.  
  32.         [BsonElement("AvailableQuantity")]
  33.         public int AvailableQuantity { get; set; }
  34.  
  35.         [BsonElement("Picture")]
  36.         public String Picture { get; set; }
  37.  
  38.         [BsonElement("Size")]
  39.         public String Size { get; set; }
  40.  
  41.         [BsonElement("ReqPrice")]
  42.         public int ReqPrice { get; set; }
  43.     }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement