//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30128.1
//
//     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: 3/10/2010 12:14:28 PM
namespace UnicodeParms3._5
{
    
    /// <summary>
    /// There are no comments for test2Entities in the schema.
    /// </summary>
    public partial class test2Entities : global::System.Data.Objects.ObjectContext
    {
        /// <summary>
        /// Initializes a new test2Entities object using the connection string found in the 'test2Entities' section of the application configuration file.
        /// </summary>
        public test2Entities() : 
                base("name=test2Entities", "test2Entities")
        {
            this.OnContextCreated();
        }
        /// <summary>
        /// Initialize a new test2Entities object.
        /// </summary>
        public test2Entities(string connectionString) : 
                base(connectionString, "test2Entities")
        {
            this.OnContextCreated();
        }
        /// <summary>
        /// Initialize a new test2Entities object.
        /// </summary>
        public test2Entities(global::System.Data.EntityClient.EntityConnection connection) : 
                base(connection, "test2Entities")
        {
            this.OnContextCreated();
        }
        partial void OnContextCreated();
        /// <summary>
        /// There are no comments for Candidats in the schema.
        /// </summary>
        [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
        public global::System.Data.Objects.ObjectQuery<Candidat> Candidats
        {
            get
            {
                if ((this._Candidats == null))
                {
                    this._Candidats = base.CreateQuery<Candidat>("[Candidats]");
                }
                return this._Candidats;
            }
        }
        [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
        private global::System.Data.Objects.ObjectQuery<Candidat> _Candidats;
        /// <summary>
        /// There are no comments for Candidats in the schema.
        /// </summary>
        [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
        public void AddToCandidats(Candidat candidat)
        {
            base.AddObject("Candidats", candidat);
        }
    }
    /// <summary>
    /// There are no comments for test2Model.Candidat in the schema.
    /// </summary>
    /// <KeyProperties>
    /// ca_code
    /// </KeyProperties>
    [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="test2Model", Name="Candidat")]
    [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
    [global::System.Serializable()]
    public partial class Candidat : global::System.Data.Objects.DataClasses.EntityObject
    {
        /// <summary>
        /// Create a new Candidat object.
        /// </summary>
        /// <param name="ca_code">Initial value of ca_code.</param>
        [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
        public static Candidat CreateCandidat(string ca_code)
        {
            Candidat candidat = new Candidat();
            candidat.ca_code = ca_code;
            return candidat;
        }
        /// <summary>
        /// There are no comments for property ca_code in the schema.
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
        public string ca_code
        {
            get
            {
                return this._ca_code;
            }
            set
            {
                this.Onca_codeChanging(value);
                this.ReportPropertyChanging("ca_code");
                this._ca_code = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
                this.ReportPropertyChanged("ca_code");
                this.Onca_codeChanged();
            }
        }
        [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
        private string _ca_code;
        [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
        partial void Onca_codeChanging(string value);
        [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
        partial void Onca_codeChanged();
        /// <summary>
        /// There are no comments for property ca_name in the schema.
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
        public string ca_name
        {
            get
            {
                return this._ca_name;
            }
            set
            {
                this.Onca_nameChanging(value);
                this.ReportPropertyChanging("ca_name");
                this._ca_name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
                this.ReportPropertyChanged("ca_name");
                this.Onca_nameChanged();
            }
        }
        [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
        private string _ca_name;
        [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
        partial void Onca_nameChanging(string value);
        [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
        partial void Onca_nameChanged();
    }
}
