开发者

Subsonic.DataService Missing in Subsonic 3.0.0.4?

How do I execute QueryCommand Object in Sub开发者_如何学GoSonic 3.0.0.4 without DataService?


Unless I've misunderstood your question can't you do the following:

ProjectNameDB.DefaultDataProvider.Execute....

Where ProjectNameDB is the class generated from Context.tt

Or something like:

QueryCommand myCmd = new QueryCommand("SELECT foo from bar", ProjectNameDB.DefaultDataProvider);
ProjectNameDBdb = new ProjectNameDB();
var result = db.DataProvider.ExecuteDataSet(myCmd);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜