mapping class error

1 posts, 0 answers
  1. amir sherafatian
    amir sherafatian avatar
    42 posts
    Member since:
    Aug 2009

    Posted 21 Sep 2009 Link to this post

    i have 13 error when i try to mapp DCDocumentAdmin class;(these errors are 2 type , but the part of lines that mentioned below as Marked(Bold) , in error , repeat freuqently for another objects(class in my project) . here , i wrote one of this object as example )

    1.OpenAccess: The db-ref extension may only be used here when referencing an application identity class. (EandE.Organization.BSL.Entities.ORGFolder:ORGFolder_FORGChildFolders - EandE.Organization.BSL.Entities.ORGFolder) 

    2.OpenAccess: Failed to process meta data on collection field 'FORGChildFolders' of class 'EandE.Organization.BSL.Entities.ORGFolder'.  

    ----------------------------

    i try to mapp a class that contain a another class in my project as field that is Marked line(BOLD) in my code :

    (this is my class that i want to map it) :

    public class DCDocumentAdmin
    {
        private int FId;
        [Telerik.OpenAccess.Depend()]
        private ORGPersonJob FORGPersonJob;
        private AdminType FAdminType;

        [Telerik.OpenAccess.FieldAlias("FId")]
        public int Id
        {
            get
            {
                return FId;
            }
            set
            {
                FId = value;
            }
        }
        [Telerik.OpenAccess.FieldAlias("FORGPersonJob")]
        public ORGPersonJob ORGPersonJob
        {
             get
             {
                return FORGPersonJob;
             }
             set
             {
                FORGPersonJob = value;
             }
        }
        [Telerik.OpenAccess.FieldAlias("FAdminType")]
        public AdminType AdminType
        {
             get
             {
                return FAdminType;
             }
             set
             {
                FAdminType = value;
             }
         }

    }

    and it is my ORGPersonJob Class :

    [Telerik.OpenAccess.Persistent(IdentityField = "FId")]
        public class ORGPersonJob
        {
            [Telerik.OpenAccess.FetchField("InternalPersonnel")]
            private int FId;
            [Telerik.OpenAccess.FetchField("InternalPersonnel", Next = "InternalPersonnel")]
            private ORGPerson FORGPerson;
            [Telerik.OpenAccess.FetchField("InternalPersonnel", Next = "InternalPersonnel")]
            private ORGJob FORGJob;
            [Telerik.OpenAccess.Depend()]
            private IList<ORGUser> FORGUsers;

            [Telerik.OpenAccess.FieldAlias("FId")]
            public int Id
            {
                get
                {
                    return FId;
                }
                set
                {
                    FId = value;
                }
            }
            [Telerik.OpenAccess.FieldAlias("FORGPerson")]
            public ORGPerson ORGPerson
            {
                get
                {
                    return FORGPerson;
                }
                set
                {
                    FORGPerson = value;
                }
            }
            [Telerik.OpenAccess.FieldAlias("FORGJob")]
            public ORGJob ORGJob
            {
                get
                {
                    return FORGJob;
                }
                set
                {
                    FORGJob = value;
                }
            }
            public IList<ORGUser> ORGUsers
            {
                get
                {
                    return FORGUsers;
                }
                set
                {
                    FORGUsers = value;
                }
            }

        }

    where is my mistake ?
    and what is my solution?

    tanks

Back to Top