可以这样操作Xml

Xml Data Source

simple xml data source to be used as a replacement to sql server for a poor

Project Description
The framework will be used for creating easy and simple xml data source to be used as a replacement to sql server for a poor, simple, non-complicated environment. All Access to the data is done via simple sql queries as "select" "insert" "update" and "delete". All queries are executed with simplistic assumptions and best try to return results without any exceptions.

 

[Test]
public void TestCreateTable3()
{
XmlParsedCommand command
= SqlParserWrapper.ParseCommandBeta("create table users (id,firstname)");
Assert.IsTrue(command.Type
== XmlParsedCommand.CommandType.Create, "command type");
Assert.IsTrue(command.TableName
== "users", "table name");
Assert.IsTrue(command.Fields.Contains(
"id"));
Assert.IsTrue(command.Fields.Contains(
"firstname"));
}

 

DropTable

 

Insert

 

Update

 

Delete

 

Select

 

 

 

 

 

 

 

 

http://www.codeplex.com/XmlData

posted @ 2008-11-20 13:26  突破666  阅读(432)  评论(0编辑  收藏  举报
郴州东江湖农家乐联盟:www.djhnjllm.com 郴州东江湖农家乐联盟