class T1
{
public int oid { get; set; }
[Index]
public string guid { get; set; }
[Index]
public string prop { get; set; }
}
q1: sometims ,a class may have different version data, we want to change table name at runtime and a version a table.
code like next
T1 t = new T1();
t.oid = 11;
typeof(A).maptable(“v1”);
db.insert(t) ; insert into table v1
typeof(A).maptable(“v2”);
db.insert(t) ; insert into table v2
q2: why T1.oid become Primary Key, how remove this behavior