2009-04-16 2 views

답변

2

을 게시 할 수 있습니다 만족하지 않으면 지금

public DataTable GetAllCarTypes() 
{ 
    return new Query("tblCarType").ExecuteDataSet().Tables[0]; 
} 

그것을 생각 쿼리에서, 당신은 할 수있다 :

public DataTable GetAllCarTypes() 
{ 
    return new Query("tblCarType").ExecuteDataSet().Tables[0]; 
} 
+0

추악한 그러나 정확하다. SubSonic에는 반드시 ExecuteDataTable()이 필요합니다. DataTable 만 필요할 때 DataSet을 사용하는 이유는 무엇입니까? – Matt

0

Ahhaaa이 .. O 게시하기 전에 생각해야 올바른 구문

관련 문제