如何使用Simple.data中的 TableTypes进行以下查询:
//Type -MyType
GId int
StartDate datetime
EndDate datetime
//Table - MyTable
Id int
GId int
Text varchar
StartDate Datetime
EndDate Datetime
Select * from MyTable T1 inner join MyType T2 on T1.GID = T2.GID
and T1.StartDate between T2.StartDate and T2.EndDate
and T1.EndDate between T2.StartDate and T2.EndDate