Skip to content

Instantly share code, notes, and snippets.

@tmwatchanan
Created November 10, 2016 17:37
Show Gist options
  • Select an option

  • Save tmwatchanan/d3d20aa730a13614450524084e13b49a to your computer and use it in GitHub Desktop.

Select an option

Save tmwatchanan/d3d20aa730a13614450524084e13b49a to your computer and use it in GitHub Desktop.
Checking properties of classes
public partial class EMPLOYEE
{
public short EMPID { get; set; }
public string JOBPOSITION { get; set; }
public int SALARY { get; set; }
public string CITIZENID { get; set; }
public virtual PERSON PERSON { get; set; }
}
public partial class FOOD
{
public string NAME { get; set; }
public string TYPE { get; set; }
public short PRICE { get; set; }
public string CITIZENID { get; set; }
public virtual PERSON PERSON { get; set; }
public virtual SELL SELL { get; set; }
}
public partial class MEMBER
{
public int MEMBERID { get; set; }
public Nullable<System.DateTime> STARTDATE { get; set; }
public Nullable<System.DateTime> EXPIRYDATE { get; set; }
public string CITIZENID { get; set; }
public virtual PERSON PERSON { get; set; }
}
public partial class MOVIE
{
public MOVIE()
{
this.SHOWTIME = new HashSet<SHOWTIME>();
}
public short MOVIEID { get; set; }
public string MOVIENAME { get; set; }
public string CATEGORY { get; set; }
public string DIRECTOR { get; set; }
public string SHORTDESCRIPTION { get; set; }
public string ACTOR { get; set; }
public Nullable<decimal> DURATION { get; set; }
public Nullable<short> PLAYCOUNT { get; set; }
public string STATUS { get; set; }
public virtual ICollection<SHOWTIME> SHOWTIME { get; set; }
}
public partial class PERSON
{
public PERSON()
{
this.FOOD = new HashSet<FOOD>();
this.EMPLOYEE = new HashSet<EMPLOYEE>();
this.MEMBER = new HashSet<MEMBER>();
}
public string CITIZENID { get; set; }
public string FNAME { get; set; }
public string LNAME { get; set; }
public string GENDER { get; set; }
public System.DateTime BIRTHDATE { get; set; }
public string ADDRESS { get; set; }
public string EMAIL { get; set; }
public string USERNAME { get; set; }
public string PASSWORD { get; set; }
public virtual ICollection<FOOD> FOOD { get; set; }
public virtual ICollection<EMPLOYEE> EMPLOYEE { get; set; }
public virtual ICollection<MEMBER> MEMBER { get; set; }
public virtual PERSON PERSON1 { get; set; }
public virtual PERSON PERSON2 { get; set; }
}
public partial class REVIEW
{
public short MOVIEID { get; set; }
public int MEMBERID { get; set; }
public bool RATING { get; set; }
public string COMMENTS { get; set; }
}
public partial class SEAT
{
public SEAT()
{
this.TICKET = new HashSet<TICKET>();
}
public string SEATROW { get; set; }
public string SEATNUMBER { get; set; }
public string ZONE { get; set; }
public bool THEATREID { get; set; }
public virtual THEATRE THEATRE { get; set; }
public virtual ICollection<TICKET> TICKET { get; set; }
}
public partial class SELL
{
public string FOODNAME { get; set; }
public short EMPID { get; set; }
public System.DateTime SDATE { get; set; }
public virtual FOOD FOOD { get; set; }
}
public partial class SHOWTIME
{
public SHOWTIME()
{
this.TICKET = new HashSet<TICKET>();
}
public System.DateTime SHOWDATE { get; set; }
public short MOVIEID { get; set; }
public bool THEATREID { get; set; }
public virtual MOVIE MOVIE { get; set; }
public virtual THEATRE THEATRE { get; set; }
public virtual ICollection<TICKET> TICKET { get; set; }
}
public partial class THEATRE
{
public THEATRE()
{
this.SEAT = new HashSet<SEAT>();
this.SHOWTIME = new HashSet<SHOWTIME>();
}
public bool THEATREID { get; set; }
public byte SEATCAPACITY { get; set; }
public virtual ICollection<SEAT> SEAT { get; set; }
public virtual ICollection<SHOWTIME> SHOWTIME { get; set; }
}
public partial class TICKET
{
public int TICKETID { get; set; }
public int MEMBERID { get; set; }
public string SEATROW { get; set; }
public string SEATNUMBER { get; set; }
public bool THEATREID { get; set; }
public System.DateTime SHOWDATE { get; set; }
public short MOVIEID { get; set; }
public short EMPID { get; set; }
public virtual SEAT SEAT { get; set; }
public virtual SHOWTIME SHOWTIME { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment