locked
Namesapce not found RRS feed

  • Question

  • User-867185030 posted

            Hi , everybody

                        the database entity YesRemsDemoEntities  is konwon by the system , but it me signale 

                     <<  The type or namespace name 'YesRemsDemoEntities' could not be found (are you missing a using directive or an assembly reference?)  >>

                          Code source :

    using DAO1;
    using System.Xml;
    using metier;
    namespace gestion
    {
        public partial class _Default : System.Web.UI.Page
        {
    
           YesRemsDemoEntities ge = contextDAO1.ge;          

                  and :

               

    //------------------------------------------------------------------------------
    // <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>
    //------------------------------------------------------------------------------
    
    using System;
    using System.Data.Objects;
    using System.Data.Objects.DataClasses;
    using System.Data.EntityClient;
    using System.ComponentModel;
    using System.Xml.Serialization;
    using System.Runtime.Serialization;
    [assembly: global::System.Data.Objects.DataClasses.EdmSchemaAttribute()]
    [assembly: EdmSchemaAttribute()]
    #region EDM Relationship Metadata
    
    [assembly: EdmRelationshipAttribute("YesRemsDemoModel", "AdmRole_AdmRight_FK1", "AdmRole", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(DAO1.AdmRole), "AdmRight", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(DAO1.AdmRight), true)]
    [assembly: EdmRelationshipAttribute("YesRemsDemoModel", "AdmRole_AdmUserRole_FK1", "AdmRole", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(DAO1.AdmRole), "AdmUserRole", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(DAO1.AdmUserRole), true)]
    [assembly: EdmRelationshipAttribute("YesRemsDemoModel", "AdmUser_AdmUserRole_FK1", "AdmUser", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(DAO1.AdmUser), "AdmUserRole", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(DAO1.AdmUserRole), true)]
    
    #endregion
    
    namespace DAO1
    {
        #region Contexts
        
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public partial class YesRemsDemoEntities : ObjectContext
        {
            #region Constructors
        
            /// <summary>
            /// Initializes a new YesRemsDemoEntities object using the connection string found in the 'YesRemsDemoEntities' section of the application configuration file.
            /// </summary>
            public YesRemsDemoEntities() : base("name=YesRemsDemoEntities", "YesRemsDemoEntities")
            {
                this.ContextOptions.LazyLoadingEnabled = true;
                OnContextCreated();
            }
        
            /// <summary>
            /// Initialize a new YesRemsDemoEntities object.
            /// </summary>
            public YesRemsDemoEntities(string connectionString) : base(connectionString, "YesRemsDemoEntities")
            {
                this.ContextOptions.LazyLoadingEnabled = true;
                OnContextCreated();
            }
        
            /// <summary>
            /// Initialize a new YesRemsDemoEntities object.
            /// </summary>
            public YesRemsDemoEntities(EntityConnection connection) : base(connection, "YesRemsDemoEntities")
            {
                this.ContextOptions.LazyLoadingEnabled = true;
                OnContextCreated();
            }
        
            #endregion
        
            #region Partial Methods
        
            partial void OnContextCreated();
        
            #endregion
        
            #region ObjectSet Properties
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            public ObjectSet<AdmRight> AdmRight
            {
                get
                {
                    if ((_AdmRight == null))
                    {
                        _AdmRight = base.CreateObjectSet<AdmRight>("AdmRight");
                    }
                    return _AdmRight;
                }
            }
            private ObjectSet<AdmRight> _AdmRight;
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            public ObjectSet<AdmRole> AdmRole
            {
                get
                {
                    if ((_AdmRole == null))
                    {
                        _AdmRole = base.CreateObjectSet<AdmRole>("AdmRole");
                    }
                    return _AdmRole;
                }
            }
            private ObjectSet<AdmRole> _AdmRole;
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            public ObjectSet<AdmUser> AdmUser
            {
                get
                {
                    if ((_AdmUser == null))
                    {
                        _AdmUser = base.CreateObjectSet<AdmUser>("AdmUser");
                    }
                    return _AdmUser;
                }
            }
            private ObjectSet<AdmUser> _AdmUser;
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            public ObjectSet<AdmUserRole> AdmUserRole
            {
                get
                {
                    if ((_AdmUserRole == null))
                    {
                        _AdmUserRole = base.CreateObjectSet<AdmUserRole>("AdmUserRole");
                    }
                    return _AdmUserRole;
                }
            }
            private ObjectSet<AdmUserRole> _AdmUserRole;
    
            #endregion
            #region AddTo Methods
        
            /// <summary>
            /// Deprecated Method for adding a new object to the AdmRight EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
            /// </summary>
            public void AddToAdmRight(AdmRight admRight)
            {
                base.AddObject("AdmRight", admRight);
            }
        
            /// <summary>
            /// Deprecated Method for adding a new object to the AdmRole EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
            /// </summary>
            public void AddToAdmRole(AdmRole admRole)
            {
                base.AddObject("AdmRole", admRole);
            }
        
            /// <summary>
            /// Deprecated Method for adding a new object to the AdmUser EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
            /// </summary>
            public void AddToAdmUser(AdmUser admUser)
            {
                base.AddObject("AdmUser", admUser);
            }
        
            /// <summary>
            /// Deprecated Method for adding a new object to the AdmUserRole EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
            /// </summary>
            public void AddToAdmUserRole(AdmUserRole admUserRole)
            {
                base.AddObject("AdmUserRole", admUserRole);
            }
    
            #endregion
        }
        
    
        #endregion
        
        #region Entities
        
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmEntityTypeAttribute(NamespaceName="YesRemsDemoModel", Name="AdmRight")]
        [Serializable()]
        [DataContractAttribute(IsReference=true)]
        public partial class AdmRight : EntityObject
        {
            #region Factory Method
        
            /// <summary>
            /// Create a new AdmRight object.
            /// </summary>
            /// <param name="pKey">Initial value of the PKey property.</param>
            public static AdmRight CreateAdmRight(global::System.Guid pKey)
            {
                AdmRight admRight = new AdmRight();
                admRight.PKey = pKey;
                return admRight;
            }
    
            #endregion
            #region Primitive Properties
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
            [DataMemberAttribute()]
            public global::System.Guid PKey
            {
                get
                {
                    return _PKey;
                }
                set
                {
                    if (_PKey != value)
                    {
                        OnPKeyChanging(value);
                        ReportPropertyChanging("PKey");
                        _PKey = StructuralObject.SetValidValue(value);
                        ReportPropertyChanged("PKey");
                        OnPKeyChanged();
                    }
                }
            }
            private global::System.Guid _PKey;
            partial void OnPKeyChanging(global::System.Guid value);
            partial void OnPKeyChanged();
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
            [DataMemberAttribute()]
            public global::System.String Code
            {
                get
                {
                    return _Code;
                }
                set
                {
                    OnCodeChanging(value);
                    ReportPropertyChanging("Code");
                    _Code = StructuralObject.SetValidValue(value, true);
                    ReportPropertyChanged("Code");
                    OnCodeChanged();
                }
            }
            private global::System.String _Code;
            partial void OnCodeChanging(global::System.String value);
            partial void OnCodeChanged();
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
            [DataMemberAttribute()]
            public global::System.String Description
            {
                get
                {
                    return _Description;
                }
                set
                {
                    OnDescriptionChanging(value);
                    ReportPropertyChanging("Description");
                    _Description = StructuralObject.SetValidValue(value, true);
                    ReportPropertyChanged("Description");
                    OnDescriptionChanged();
                }
            }
            private global::System.String _Description;
            partial void OnDescriptionChanging(global::System.String value);
            partial void OnDescriptionChanged();
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
            [DataMemberAttribute()]
            public Nullable<global::System.Guid> AdmRoleId
            {
                get
                {
                    return _AdmRoleId;
                }
                set
                {
                    OnAdmRoleIdChanging(value);
                    ReportPropertyChanging("AdmRoleId");
                    _AdmRoleId = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("AdmRoleId");
                    OnAdmRoleIdChanged();
                }
            }
            private Nullable<global::System.Guid> _AdmRoleId;
            partial void OnAdmRoleIdChanging(Nullable<global::System.Guid> value);
            partial void OnAdmRoleIdChanged();
    
            #endregion
        
            #region Navigation Properties
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [XmlIgnoreAttribute()]
            [SoapIgnoreAttribute()]
            [DataMemberAttribute()]
            [EdmRelationshipNavigationPropertyAttribute("YesRemsDemoModel", "AdmRole_AdmRight_FK1", "AdmRole")]
            public AdmRole AdmRole
            {
                get
                {
                    return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AdmRole>("YesRemsDemoModel.AdmRole_AdmRight_FK1", "AdmRole").Value;
                }
                set
                {
                    ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AdmRole>("YesRemsDemoModel.AdmRole_AdmRight_FK1", "AdmRole").Value = value;
                }
            }
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [BrowsableAttribute(false)]
            [DataMemberAttribute()]
            public EntityReference<AdmRole> AdmRoleReference
            {
                get
                {
                    return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AdmRole>("YesRemsDemoModel.AdmRole_AdmRight_FK1", "AdmRole");
                }
                set
                {
                    if ((value != null))
                    {
                        ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<AdmRole>("YesRemsDemoModel.AdmRole_AdmRight_FK1", "AdmRole", value);
                    }
                }
            }
    
            #endregion
        }
        
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmEntityTypeAttribute(NamespaceName="YesRemsDemoModel", Name="AdmRole")]
        [Serializable()]
        [DataContractAttribute(IsReference=true)]
        public partial class AdmRole : EntityObject
        {
            #region Factory Method
        
            /// <summary>
            /// Create a new AdmRole object.
            /// </summary>
            /// <param name="pKey">Initial value of the PKey property.</param>
            public static AdmRole CreateAdmRole(global::System.Guid pKey)
            {
                AdmRole admRole = new AdmRole();
                admRole.PKey = pKey;
                return admRole;
            }
    
            #endregion
            #region Primitive Properties
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
            [DataMemberAttribute()]
            public global::System.String Code
            {
                get
                {
                    return _Code;
                }
                set
                {
                    OnCodeChanging(value);
                    ReportPropertyChanging("Code");
                    _Code = StructuralObject.SetValidValue(value, true);
                    ReportPropertyChanged("Code");
                    OnCodeChanged();
                }
            }
            private global::System.String _Code;
            partial void OnCodeChanging(global::System.String value);
            partial void OnCodeChanged();
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
            [DataMemberAttribute()]
            public global::System.Guid PKey
            {
                get
                {
                    return _PKey;
                }
                set
                {
                    if (_PKey != value)
                    {
                        OnPKeyChanging(value);
                        ReportPropertyChanging("PKey");
                        _PKey = StructuralObject.SetValidValue(value);
                        ReportPropertyChanged("PKey");
                        OnPKeyChanged();
                    }
                }
            }
            private global::System.Guid _PKey;
            partial void OnPKeyChanging(global::System.Guid value);
            partial void OnPKeyChanged();
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
            [DataMemberAttribute()]
            public global::System.String Description
            {
                get
                {
                    return _Description;
                }
                set
                {
                    OnDescriptionChanging(value);
                    ReportPropertyChanging("Description");
                    _Description = StructuralObject.SetValidValue(value, true);
                    ReportPropertyChanged("Description");
                    OnDescriptionChanged();
                }
            }
            private global::System.String _Description;
            partial void OnDescriptionChanging(global::System.String value);
            partial void OnDescriptionChanged();
    
            #endregion
        
            #region Navigation Properties
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [XmlIgnoreAttribute()]
            [SoapIgnoreAttribute()]
            [DataMemberAttribute()]
            [EdmRelationshipNavigationPropertyAttribute("YesRemsDemoModel", "AdmRole_AdmRight_FK1", "AdmRight")]
            public EntityCollection<AdmRight> AdmRight
            {
                get
                {
                    return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AdmRight>("YesRemsDemoModel.AdmRole_AdmRight_FK1", "AdmRight");
                }
                set
                {
                    if ((value != null))
                    {
                        ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AdmRight>("YesRemsDemoModel.AdmRole_AdmRight_FK1", "AdmRight", value);
                    }
                }
            }
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [XmlIgnoreAttribute()]
            [SoapIgnoreAttribute()]
            [DataMemberAttribute()]
            [EdmRelationshipNavigationPropertyAttribute("YesRemsDemoModel", "AdmRole_AdmUserRole_FK1", "AdmUserRole")]
            public EntityCollection<AdmUserRole> AdmUserRole
            {
                get
                {
                    return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AdmUserRole>("YesRemsDemoModel.AdmRole_AdmUserRole_FK1", "AdmUserRole");
                }
                set
                {
                    if ((value != null))
                    {
                        ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AdmUserRole>("YesRemsDemoModel.AdmRole_AdmUserRole_FK1", "AdmUserRole", value);
                    }
                }
            }
    
            #endregion
        }
        
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmEntityTypeAttribute(NamespaceName="YesRemsDemoModel", Name="AdmUser")]
        [Serializable()]
        [DataContractAttribute(IsReference=true)]
        public partial class AdmUser : EntityObject
        {
            #region Factory Method
        
            /// <summary>
            /// Create a new AdmUser object.
            /// </summary>
            /// <param name="pKey">Initial value of the PKey property.</param>
            public static AdmUser CreateAdmUser(global::System.Guid pKey)
            {
                AdmUser admUser = new AdmUser();
                admUser.PKey = pKey;
                return admUser;
            }
    
            #endregion
            #region Primitive Properties
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
            [DataMemberAttribute()]
            public global::System.Guid PKey
            {
                get
                {
                    return _PKey;
                }
                set
                {
                    if (_PKey != value)
                    {
                        OnPKeyChanging(value);
                        ReportPropertyChanging("PKey");
                        _PKey = StructuralObject.SetValidValue(value);
                        ReportPropertyChanged("PKey");
                        OnPKeyChanged();
                    }
                }
            }
            private global::System.Guid _PKey;
            partial void OnPKeyChanging(global::System.Guid value);
            partial void OnPKeyChanged();
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
            [DataMemberAttribute()]
            public global::System.String Code
            {
                get
                {
                    return _Code;
                }
                set
                {
                    OnCodeChanging(value);
                    ReportPropertyChanging("Code");
                    _Code = StructuralObject.SetValidValue(value, true);
                    ReportPropertyChanged("Code");
                    OnCodeChanged();
                }
            }
            private global::System.String _Code;
            partial void OnCodeChanging(global::System.String value);
            partial void OnCodeChanged();
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
            [DataMemberAttribute()]
            public global::System.String Pass
            {
                get
                {
                    return _Pass;
                }
                set
                {
                    OnPassChanging(value);
                    ReportPropertyChanging("Pass");
                    _Pass = StructuralObject.SetValidValue(value, true);
                    ReportPropertyChanged("Pass");
                    OnPassChanged();
                }
            }
            private global::System.String _Pass;
            partial void OnPassChanging(global::System.String value);
            partial void OnPassChanged();
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
            [DataMemberAttribute()]
            public global::System.String Description
            {
                get
                {
                    return _Description;
                }
                set
                {
                    OnDescriptionChanging(value);
                    ReportPropertyChanging("Description");
                    _Description = StructuralObject.SetValidValue(value, true);
                    ReportPropertyChanged("Description");
                    OnDescriptionChanged();
                }
            }
            private global::System.String _Description;
            partial void OnDescriptionChanging(global::System.String value);
            partial void OnDescriptionChanged();
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
            [DataMemberAttribute()]
            public Nullable<global::System.Boolean> CalandarVisible
            {
                get
                {
                    return _CalandarVisible;
                }
                set
                {
                    OnCalandarVisibleChanging(value);
                    ReportPropertyChanging("CalandarVisible");
                    _CalandarVisible = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("CalandarVisible");
                    OnCalandarVisibleChanged();
                }
            }
            private Nullable<global::System.Boolean> _CalandarVisible;
            partial void OnCalandarVisibleChanging(Nullable<global::System.Boolean> value);
            partial void OnCalandarVisibleChanged();
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
            [DataMemberAttribute()]
            public Nullable<global::System.Boolean> CalandarLocked
            {
                get
                {
                    return _CalandarLocked;
                }
                set
                {
                    OnCalandarLockedChanging(value);
                    ReportPropertyChanging("CalandarLocked");
                    _CalandarLocked = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("CalandarLocked");
                    OnCalandarLockedChanged();
                }
            }
            private Nullable<global::System.Boolean> _CalandarLocked;
            partial void OnCalandarLockedChanging(Nullable<global::System.Boolean> value);
            partial void OnCalandarLockedChanged();
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
            [DataMemberAttribute()]
            public Nullable<global::System.Boolean> CanEditReports
            {
                get
                {
                    return _CanEditReports;
                }
                set
                {
                    OnCanEditReportsChanging(value);
                    ReportPropertyChanging("CanEditReports");
                    _CanEditReports = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("CanEditReports");
                    OnCanEditReportsChanged();
                }
            }
            private Nullable<global::System.Boolean> _CanEditReports;
            partial void OnCanEditReportsChanging(Nullable<global::System.Boolean> value);
            partial void OnCanEditReportsChanged();
    
            #endregion
        
            #region Navigation Properties
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [XmlIgnoreAttribute()]
            [SoapIgnoreAttribute()]
            [DataMemberAttribute()]
            [EdmRelationshipNavigationPropertyAttribute("YesRemsDemoModel", "AdmUser_AdmUserRole_FK1", "AdmUserRole")]
            public EntityCollection<AdmUserRole> AdmUserRole
            {
                get
                {
                    return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AdmUserRole>("YesRemsDemoModel.AdmUser_AdmUserRole_FK1", "AdmUserRole");
                }
                set
                {
                    if ((value != null))
                    {
                        ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AdmUserRole>("YesRemsDemoModel.AdmUser_AdmUserRole_FK1", "AdmUserRole", value);
                    }
                }
            }
    
            #endregion
        }
        
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmEntityTypeAttribute(NamespaceName="YesRemsDemoModel", Name="AdmUserRole")]
        [Serializable()]
        [DataContractAttribute(IsReference=true)]
        public partial class AdmUserRole : EntityObject
        {
            #region Factory Method
        
            /// <summary>
            /// Create a new AdmUserRole object.
            /// </summary>
            /// <param name="pKey">Initial value of the PKey property.</param>
            public static AdmUserRole CreateAdmUserRole(global::System.Guid pKey)
            {
                AdmUserRole admUserRole = new AdmUserRole();
                admUserRole.PKey = pKey;
                return admUserRole;
            }
    
            #endregion
            #region Primitive Properties
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
            [DataMemberAttribute()]
            public global::System.Guid PKey
            {
                get
                {
                    return _PKey;
                }
                set
                {
                    if (_PKey != value)
                    {
                        OnPKeyChanging(value);
                        ReportPropertyChanging("PKey");
                        _PKey = StructuralObject.SetValidValue(value);
                        ReportPropertyChanged("PKey");
                        OnPKeyChanged();
                    }
                }
            }
            private global::System.Guid _PKey;
            partial void OnPKeyChanging(global::System.Guid value);
            partial void OnPKeyChanged();
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
            [DataMemberAttribute()]
            public Nullable<global::System.Guid> AdmRoleId
            {
                get
                {
                    return _AdmRoleId;
                }
                set
                {
                    OnAdmRoleIdChanging(value);
                    ReportPropertyChanging("AdmRoleId");
                    _AdmRoleId = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("AdmRoleId");
                    OnAdmRoleIdChanged();
                }
            }
            private Nullable<global::System.Guid> _AdmRoleId;
            partial void OnAdmRoleIdChanging(Nullable<global::System.Guid> value);
            partial void OnAdmRoleIdChanged();
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
            [DataMemberAttribute()]
            public Nullable<global::System.Guid> AdmUserId
            {
                get
                {
                    return _AdmUserId;
                }
                set
                {
                    OnAdmUserIdChanging(value);
                    ReportPropertyChanging("AdmUserId");
                    _AdmUserId = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("AdmUserId");
                    OnAdmUserIdChanged();
                }
            }
            private Nullable<global::System.Guid> _AdmUserId;
            partial void OnAdmUserIdChanging(Nullable<global::System.Guid> value);
            partial void OnAdmUserIdChanged();
    
            #endregion
        
            #region Navigation Properties
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [XmlIgnoreAttribute()]
            [SoapIgnoreAttribute()]
            [DataMemberAttribute()]
            [EdmRelationshipNavigationPropertyAttribute("YesRemsDemoModel", "AdmRole_AdmUserRole_FK1", "AdmRole")]
            public AdmRole AdmRole
            {
                get
                {
                    return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AdmRole>("YesRemsDemoModel.AdmRole_AdmUserRole_FK1", "AdmRole").Value;
                }
                set
                {
                    ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AdmRole>("YesRemsDemoModel.AdmRole_AdmUserRole_FK1", "AdmRole").Value = value;
                }
            }
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [BrowsableAttribute(false)]
            [DataMemberAttribute()]
            public EntityReference<AdmRole> AdmRoleReference
            {
                get
                {
                    return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AdmRole>("YesRemsDemoModel.AdmRole_AdmUserRole_FK1", "AdmRole");
                }
                set
                {
                    if ((value != null))
                    {
                        ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<AdmRole>("YesRemsDemoModel.AdmRole_AdmUserRole_FK1", "AdmRole", value);
                    }
                }
            }
        
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [XmlIgnoreAttribute()]
            [SoapIgnoreAttribute()]
            [DataMemberAttribute()]
            [EdmRelationshipNavigationPropertyAttribute("YesRemsDemoModel", "AdmUser_AdmUserRole_FK1", "AdmUser")]
            public AdmUser AdmUser
            {
                get
                {
                    return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AdmUser>("YesRemsDemoModel.AdmUser_AdmUserRole_FK1", "AdmUser").Value;
                }
                set
                {
                    ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AdmUser>("YesRemsDemoModel.AdmUser_AdmUserRole_FK1", "AdmUser").Value = value;
                }
            }
            /// <summary>
            /// No Metadata Documentation available.
            /// </summary>
            [BrowsableAttribute(false)]
            [DataMemberAttribute()]
            public EntityReference<AdmUser> AdmUserReference
            {
                get
                {
                    return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AdmUser>("YesRemsDemoModel.AdmUser_AdmUserRole_FK1", "AdmUser");
                }
                set
                {
                    if ((value != null))
                    {
                        ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<AdmUser>("YesRemsDemoModel.AdmUser_AdmUserRole_FK1", "AdmUser", value);
                    }
                }
            }
    
            #endregion
        }
    
        #endregion
        
    }
    






    Monday, July 30, 2012 6:06 AM

Answers

  • User-867185030 posted

                     i think the error is due to the config file web.config and app.config , in the Connection String

                                        i write by mistake                  <<(local)\SQLEXPRESS\SQLEXPRESS>>

                         and when i eliminates the mistake , it works !   Yell

                                         this wwhat heppens ....

                       thnx    Mr Decker Dong

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, August 2, 2012 6:00 AM

All replies

  • User1759999623 posted

    Is this in a separate project?  Is your main application referencing this project or the assembly that contains this class?

    Monday, July 30, 2012 9:44 AM
  • User-867185030 posted

               i put this file , thniking that's the error source ...
                              Laughing

    Tuesday, July 31, 2012 5:29 AM
  • User3866881 posted

               i put this file , thniking that's the error source ...
                              Laughing

    Problem solved? If yes, please share us nice solutions……or your feedback, please.

    Tuesday, July 31, 2012 9:30 PM
  • User-867185030 posted

                     i think the error is due to the config file web.config and app.config , in the Connection String

                                        i write by mistake                  <<(local)\SQLEXPRESS\SQLEXPRESS>>

                         and when i eliminates the mistake , it works !   Yell

                                         this wwhat heppens ....

                       thnx    Mr Decker Dong

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, August 2, 2012 6:00 AM