-
Notifications
You must be signed in to change notification settings - Fork 1
/
User.cs
53 lines (49 loc) · 2.53 KB
/
User.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace SmartFarming
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
public partial class User
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public User()
{
this.Fertilizers = new HashSet<Fertilizer>();
this.Pesticides = new HashSet<Pesticide>();
this.Quotations = new HashSet<Quotation>();
this.Seeds = new HashSet<Seed>();
this.Tractors = new HashSet<Tractor>();
}
public int id { get; set; }
public string Name { get; set; }
public string Email { get; set; }
public string ContactNo { get; set; }
[DataType(DataType.Password)]
public string Password { get; set; }
public int role_id { get; set; }
public string Address { get; set; }
public Nullable<int> city_id { get; set; }
public Nullable<int> state_id { get; set; }
public virtual City City { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<Fertilizer> Fertilizers { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<Pesticide> Pesticides { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<Quotation> Quotations { get; set; }
public virtual Role Role { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<Seed> Seeds { get; set; }
public virtual State State { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<Tractor> Tractors { get; set; }
}
}