Unable to update database

Thread is closed for posting
3 posts, 0 answers
  1. Bryan
    Bryan avatar
    1 posts
    Member since:
    Jan 2009

    Posted 12 Feb 2009 Link to this post

    I am new to OpenAccess ORM and tried to learn how it works. I wrote the a simple class and tried the forward mapping. Whenever I ran "Update Database" or compiled the program, I got the following error message.

    OpenAccess Error: Telerik.OpenAccess: Updating SQL schema failed. System.TypeLoadException: A null or zero length string does not represent a valid Type.

    What did I do wrong? Below is the class that I am using. Any idea?

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    namespace WindowsFormsApplication1
        public class Class1
            private int _id;
            private string _name;

            public int Id {
                get { return _id; }
                set { _id = value; }

            public string Name {
                get { return _name; }
                set { _name = value; }

            public Class1() {
                _id = 0;
                _name = String.Empty;
  2. PetarP
    PetarP avatar
    754 posts

    Posted 16 Feb 2009 Link to this post

    Hello Bryan,
    We tried to reproduce the problems you are experiencing with your project here locally at Telerik, but the project worked fine and did not return any errors.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. prabhu
    prabhu avatar
    6 posts
    Member since:
    Jun 2007

    Posted 16 Apr 2009 Link to this post

    Hello Bryan,

    u just removed the mapping tag in the app.config file using  classlib

    reconnect the u database and reverse eng process

    openaccess--->Expert wizard---->updatedatabse set true
    and bulid the process it wil automatically corrected
    thats all

Back to Top