//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.5456
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

[assembly: global::System.Data.Objects.DataClasses.EdmSchemaAttribute()]

// Original file name:
// Generation date: 9/5/2012 4:27:40 PM
namespace EntityFramework.ReadWrite
{
    
    /// <summary>
    /// There are no comments for TelerikEntities35 in the schema.
    /// </summary>
    public partial class TelerikEntities35 : global::System.Data.Objects.ObjectContext
    {
        /// <summary>
        /// Initializes a new TelerikEntities35 object using the connection string found in the 'TelerikEntities35' section of the application configuration file.
        /// </summary>
        public TelerikEntities35() : 
                base("name=TelerikEntities35", "TelerikEntities35")
        {
            this.OnContextCreated();
        }
        /// <summary>
        /// Initialize a new TelerikEntities35 object.
        /// </summary>
        public TelerikEntities35(string connectionString) : 
                base(connectionString, "TelerikEntities35")
        {
            this.OnContextCreated();
        }
        /// <summary>
        /// Initialize a new TelerikEntities35 object.
        /// </summary>
        public TelerikEntities35(global::System.Data.EntityClient.EntityConnection connection) : 
                base(connection, "TelerikEntities35")
        {
            this.OnContextCreated();
        }
        partial void OnContextCreated();
        /// <summary>
        /// There are no comments for Links in the schema.
        /// </summary>
        public global::System.Data.Objects.ObjectQuery<Links> Links
        {
            get
            {
                if ((this._Links == null))
                {
                    this._Links = base.CreateQuery<Links>("[Links]");
                }
                return this._Links;
            }
        }
        private global::System.Data.Objects.ObjectQuery<Links> _Links;
        /// <summary>
        /// There are no comments for Appointments in the schema.
        /// </summary>
        public global::System.Data.Objects.ObjectQuery<Appointments> Appointments
        {
            get
            {
                if ((this._Appointments == null))
                {
                    this._Appointments = base.CreateQuery<Appointments>("[Appointments]");
                }
                return this._Appointments;
            }
        }
        private global::System.Data.Objects.ObjectQuery<Appointments> _Appointments;
        /// <summary>
        /// There are no comments for Rooms in the schema.
        /// </summary>
        public global::System.Data.Objects.ObjectQuery<Rooms> Rooms
        {
            get
            {
                if ((this._Rooms == null))
                {
                    this._Rooms = base.CreateQuery<Rooms>("[Rooms]");
                }
                return this._Rooms;
            }
        }
        private global::System.Data.Objects.ObjectQuery<Rooms> _Rooms;
        /// <summary>
        /// There are no comments for Users in the schema.
        /// </summary>
        public global::System.Data.Objects.ObjectQuery<Users> Users
        {
            get
            {
                if ((this._Users == null))
                {
                    this._Users = base.CreateQuery<Users>("[Users]");
                }
                return this._Users;
            }
        }
        private global::System.Data.Objects.ObjectQuery<Users> _Users;
        /// <summary>
        /// There are no comments for Links in the schema.
        /// </summary>
        public void AddToLinks(Links links)
        {
            base.AddObject("Links", links);
        }
        /// <summary>
        /// There are no comments for Appointments in the schema.
        /// </summary>
        public void AddToAppointments(Appointments appointments)
        {
            base.AddObject("Appointments", appointments);
        }
        /// <summary>
        /// There are no comments for Rooms in the schema.
        /// </summary>
        public void AddToRooms(Rooms rooms)
        {
            base.AddObject("Rooms", rooms);
        }
        /// <summary>
        /// There are no comments for Users in the schema.
        /// </summary>
        public void AddToUsers(Users users)
        {
            base.AddObject("Users", users);
        }
    }
    /// <summary>
    /// There are no comments for TelerikModel.Links in the schema.
    /// </summary>
    /// <KeyProperties>
    /// id
    /// </KeyProperties>
    [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="TelerikModel", Name="Links")]
    [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
    [global::System.Serializable()]
    public partial class Links : global::System.Data.Objects.DataClasses.EntityObject
    {
        /// <summary>
        /// Create a new Links object.
        /// </summary>
        /// <param name="id">Initial value of id.</param>
        public static Links CreateLinks(int id)
        {
            Links links = new Links();
            links.id = id;
            return links;
        }
        /// <summary>
        /// There are no comments for Property id in the schema.
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public int id
        {
            get
            {
                return this._id;
            }
            set
            {
                this.OnidChanging(value);
                this.ReportPropertyChanging("id");
                this._id = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("id");
                this.OnidChanged();
            }
        }
        private int _id;
        partial void OnidChanging(int value);
        partial void OnidChanged();
        /// <summary>
        /// There are no comments for Property parentId in the schema.
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Nullable<int> parentId
        {
            get
            {
                return this._parentId;
            }
            set
            {
                this.OnparentIdChanging(value);
                this.ReportPropertyChanging("parentId");
                this._parentId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("parentId");
                this.OnparentIdChanged();
            }
        }
        private global::System.Nullable<int> _parentId;
        partial void OnparentIdChanging(global::System.Nullable<int> value);
        partial void OnparentIdChanged();
        /// <summary>
        /// There are no comments for Property Text in the schema.
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public string Text
        {
            get
            {
                return this._Text;
            }
            set
            {
                this.OnTextChanging(value);
                this.ReportPropertyChanging("Text");
                this._Text = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
                this.ReportPropertyChanged("Text");
                this.OnTextChanged();
            }
        }
        private string _Text;
        partial void OnTextChanging(string value);
        partial void OnTextChanged();
    }
    /// <summary>
    /// There are no comments for TelerikModel.Appointments in the schema.
    /// </summary>
    /// <KeyProperties>
    /// ID
    /// </KeyProperties>
    [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="TelerikModel", Name="Appointments")]
    [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
    [global::System.Serializable()]
    public partial class Appointments : global::System.Data.Objects.DataClasses.EntityObject
    {
        /// <summary>
        /// Create a new Appointments object.
        /// </summary>
        /// <param name="id">Initial value of ID.</param>
        /// <param name="subject">Initial value of Subject.</param>
        /// <param name="start">Initial value of Start.</param>
        /// <param name="end">Initial value of End.</param>
        public static Appointments CreateAppointments(int id, string subject, global::System.DateTime start, global::System.DateTime end)
        {
            Appointments appointments = new Appointments();
            appointments.ID = id;
            appointments.Subject = subject;
            appointments.Start = start;
            appointments.End = end;
            return appointments;
        }
        /// <summary>
        /// There are no comments for Property ID in the schema.
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public int ID
        {
            get
            {
                return this._ID;
            }
            set
            {
                this.OnIDChanging(value);
                this.ReportPropertyChanging("ID");
                this._ID = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("ID");
                this.OnIDChanged();
            }
        }
        private int _ID;
        partial void OnIDChanging(int value);
        partial void OnIDChanged();
        /// <summary>
        /// There are no comments for Property Subject in the schema.
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public string Subject
        {
            get
            {
                return this._Subject;
            }
            set
            {
                this.OnSubjectChanging(value);
                this.ReportPropertyChanging("Subject");
                this._Subject = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
                this.ReportPropertyChanged("Subject");
                this.OnSubjectChanged();
            }
        }
        private string _Subject;
        partial void OnSubjectChanging(string value);
        partial void OnSubjectChanged();
        /// <summary>
        /// There are no comments for Property Start in the schema.
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.DateTime Start
        {
            get
            {
                return this._Start;
            }
            set
            {
                this.OnStartChanging(value);
                this.ReportPropertyChanging("Start");
                this._Start = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("Start");
                this.OnStartChanged();
            }
        }
        private global::System.DateTime _Start;
        partial void OnStartChanging(global::System.DateTime value);
        partial void OnStartChanged();
        /// <summary>
        /// There are no comments for Property End in the schema.
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.DateTime End
        {
            get
            {
                return this._End;
            }
            set
            {
                this.OnEndChanging(value);
                this.ReportPropertyChanging("End");
                this._End = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("End");
                this.OnEndChanged();
            }
        }
        private global::System.DateTime _End;
        partial void OnEndChanging(global::System.DateTime value);
        partial void OnEndChanged();
        /// <summary>
        /// There are no comments for Property UserID in the schema.
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Nullable<int> UserID
        {
            get
            {
                return this._UserID;
            }
            set
            {
                this.OnUserIDChanging(value);
                this.ReportPropertyChanging("UserID");
                this._UserID = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("UserID");
                this.OnUserIDChanged();
            }
        }
        private global::System.Nullable<int> _UserID;
        partial void OnUserIDChanging(global::System.Nullable<int> value);
        partial void OnUserIDChanged();
        /// <summary>
        /// There are no comments for Property RoomID in the schema.
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Nullable<int> RoomID
        {
            get
            {
                return this._RoomID;
            }
            set
            {
                this.OnRoomIDChanging(value);
                this.ReportPropertyChanging("RoomID");
                this._RoomID = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("RoomID");
                this.OnRoomIDChanged();
            }
        }
        private global::System.Nullable<int> _RoomID;
        partial void OnRoomIDChanging(global::System.Nullable<int> value);
        partial void OnRoomIDChanged();
        /// <summary>
        /// There are no comments for Property RecurrenceRule in the schema.
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public string RecurrenceRule
        {
            get
            {
                return this._RecurrenceRule;
            }
            set
            {
                this.OnRecurrenceRuleChanging(value);
                this.ReportPropertyChanging("RecurrenceRule");
                this._RecurrenceRule = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
                this.ReportPropertyChanged("RecurrenceRule");
                this.OnRecurrenceRuleChanged();
            }
        }
        private string _RecurrenceRule;
        partial void OnRecurrenceRuleChanging(string value);
        partial void OnRecurrenceRuleChanged();
        /// <summary>
        /// There are no comments for Property Annotations in the schema.
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public string Annotations
        {
            get
            {
                return this._Annotations;
            }
            set
            {
                this.OnAnnotationsChanging(value);
                this.ReportPropertyChanging("Annotations");
                this._Annotations = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
                this.ReportPropertyChanged("Annotations");
                this.OnAnnotationsChanged();
            }
        }
        private string _Annotations;
        partial void OnAnnotationsChanging(string value);
        partial void OnAnnotationsChanged();
        /// <summary>
        /// There are no comments for Property RecurrenceParentID in the schema.
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Nullable<int> RecurrenceParentID
        {
            get
            {
                return this._RecurrenceParentID;
            }
            set
            {
                this.OnRecurrenceParentIDChanging(value);
                this.ReportPropertyChanging("RecurrenceParentID");
                this._RecurrenceParentID = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("RecurrenceParentID");
                this.OnRecurrenceParentIDChanged();
            }
        }
        private global::System.Nullable<int> _RecurrenceParentID;
        partial void OnRecurrenceParentIDChanging(global::System.Nullable<int> value);
        partial void OnRecurrenceParentIDChanged();
    }
    /// <summary>
    /// There are no comments for TelerikModel.Rooms in the schema.
    /// </summary>
    /// <KeyProperties>
    /// ID
    /// </KeyProperties>
    [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="TelerikModel", Name="Rooms")]
    [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
    [global::System.Serializable()]
    public partial class Rooms : global::System.Data.Objects.DataClasses.EntityObject
    {
        /// <summary>
        /// Create a new Rooms object.
        /// </summary>
        /// <param name="id">Initial value of ID.</param>
        /// <param name="roomName">Initial value of RoomName.</param>
        public static Rooms CreateRooms(int id, string roomName)
        {
            Rooms rooms = new Rooms();
            rooms.ID = id;
            rooms.RoomName = roomName;
            return rooms;
        }
        /// <summary>
        /// There are no comments for Property ID in the schema.
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public int ID
        {
            get
            {
                return this._ID;
            }
            set
            {
                this.OnIDChanging(value);
                this.ReportPropertyChanging("ID");
                this._ID = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("ID");
                this.OnIDChanged();
            }
        }
        private int _ID;
        partial void OnIDChanging(int value);
        partial void OnIDChanged();
        /// <summary>
        /// There are no comments for Property RoomName in the schema.
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public string RoomName
        {
            get
            {
                return this._RoomName;
            }
            set
            {
                this.OnRoomNameChanging(value);
                this.ReportPropertyChanging("RoomName");
                this._RoomName = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
                this.ReportPropertyChanged("RoomName");
                this.OnRoomNameChanged();
            }
        }
        private string _RoomName;
        partial void OnRoomNameChanging(string value);
        partial void OnRoomNameChanged();
    }
    /// <summary>
    /// There are no comments for TelerikModel.Users in the schema.
    /// </summary>
    /// <KeyProperties>
    /// ID
    /// </KeyProperties>
    [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="TelerikModel", Name="Users")]
    [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
    [global::System.Serializable()]
    public partial class Users : global::System.Data.Objects.DataClasses.EntityObject
    {
        /// <summary>
        /// Create a new Users object.
        /// </summary>
        /// <param name="id">Initial value of ID.</param>
        /// <param name="userName">Initial value of UserName.</param>
        public static Users CreateUsers(int id, string userName)
        {
            Users users = new Users();
            users.ID = id;
            users.UserName = userName;
            return users;
        }
        /// <summary>
        /// There are no comments for Property ID in the schema.
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public int ID
        {
            get
            {
                return this._ID;
            }
            set
            {
                this.OnIDChanging(value);
                this.ReportPropertyChanging("ID");
                this._ID = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("ID");
                this.OnIDChanged();
            }
        }
        private int _ID;
        partial void OnIDChanging(int value);
        partial void OnIDChanged();
        /// <summary>
        /// There are no comments for Property UserName in the schema.
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public string UserName
        {
            get
            {
                return this._UserName;
            }
            set
            {
                this.OnUserNameChanging(value);
                this.ReportPropertyChanging("UserName");
                this._UserName = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
                this.ReportPropertyChanged("UserName");
                this.OnUserNameChanged();
            }
        }
        private string _UserName;
        partial void OnUserNameChanging(string value);
        partial void OnUserNameChanged();
    }
}
