Using system;
Using lephone. Data;
Using lephone. Data. definition;
Using lephone. Web;
Namespace debug
{
Public class testclass1: dbobject
{
Public string name;
}
Public class testclass2: dbobject
{
Public int age;
}
[Joinon (0, "testclass1.id", "testclass2.id", compareopration. Equal, joinmode. Inner)]
[Createtablelist (typeof (testclass1), typeof (testclass2)]
Public class joinclass: idbobject
{
Public string name;
Public int age;
}
Class Program
{
Static void main (string [] ARGs)
{
Console. writeline ("Hellow world! ");
// Dbentry. Context. dropandcreate (typeof (testclass1 ));
// Dbentry. Context. dropandcreate (typeof (testclass2 ));
// Testclass1 T1 = new testclass1 ();
// T1.name = "wxy ";
// Dbentry. Save (T1 );
// Testclass2 t2 = new testclass2 ();
// T2.age = 1;
// Dbentry. Save (T2 );
VaR list = dbentry. From <joinclass> (). Where (null). Select ();
Console. writeline (list. Count );
Console. Readline ();
}
}
}