首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

关于此更新数据代码的设计解决思路

2012-04-28 
关于此更新数据代码的设计C# codetry{this.Validate()this.customersBindingSource.EndEdit()this.custo

关于此更新数据代码的设计

C# code
try{    this.Validate();    this.customersBindingSource.EndEdit();    this.customersTableAdapter.Update(this.northwindDataSet.Customers);    MessageBox.Show("Update successful");}catch (System.Exception ex){    MessageBox.Show("Update failed");}

以上代码为使用 TableAdapter 更新数据,我现在想把它做成函数放在WCF服务的中间层里,可供客户端的表示层进行调用,具体该如何写呢?

[解决办法]
可有难度,帮顶一下!
[解决办法]
中间层发不出一个接口来就行了,客户端调用,中间层处理

热点排行