This question is locked. New answers and comments are not allowed.
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
{
[Telerik.OpenAccess.Persistent()]
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;
}
}
}
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
{
[Telerik.OpenAccess.Persistent()]
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;
}
}
}