#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Data;
using System.Linq;
using System.Linq.Expressions;
using System.Data.Common;
using System.Collections.Generic;
using Telerik.OpenAccess;
using Telerik.OpenAccess.Metadata;
using System.ServiceModel.DomainServices.Server;


namespace ComboBoxDemo.Web	
{
	[Table("Osoba")]
	public partial class Osoba
	{
		private int iD;
		
		[Column("ID", OpenAccessType = OpenAccessType.Int32, IsBackendCalculated = true, IsPrimaryKey = true, SqlType = "int")]
		[Storage("iD")]
		public virtual int ID 
		{ 
		    get
		    {
		        return this.iD;
		    }
		    set
		    {
		        this.iD = value;
		    }
		}
		
		private string jmeno;
		
		[Column("Jmeno", OpenAccessType = OpenAccessType.Varchar, Length = 100, SqlType = "nvarchar")]
		[Storage("jmeno")]
		public virtual string Jmeno 
		{ 
		    get
		    {
		        return this.jmeno;
		    }
		    set
		    {
		        this.jmeno = value;
		    }
		}
		
		private int? pohlaviID;
		
		[Column("Pohlavi_ID", OpenAccessType = OpenAccessType.Int32, IsNullable = true, SqlType = "int")]
		[Storage("pohlaviID")]
		public virtual int? Pohlavi_ID 
		{ 
		    get
		    {
		        return this.pohlaviID;
		    }
		    set
		    {
		        this.pohlaviID = value;
		    }
		}
		
		private Pohlavi pohlavi;
		
		[ForeignKeyAssociation(ConstraintName = "FK_Osoba_Pohlavi", SharedFields = "Pohlavi_ID", TargetFields = "iD")]
		[Storage("pohlavi")]
        [Include]
        [System.ComponentModel.DataAnnotations.Association("FK_Osoba_Pohlavi", "Pohlavi_ID", "ID")] 
		public virtual Pohlavi Pohlavi 
		{ 
		    get
		    {
		        return this.pohlavi;
		    }
		    set
		    {
		        this.pohlavi = value;
		    }
		}
		
	}
}
