Пример #1
0
 private void SaveData()
 {
     using (MetaDataServiceClient _mdc = new MetaDataServiceClient())
     {
         //保存数据
         this.gridView1.PostEditor();
         this._tableDefine.Description   = this.TE_DES.EditValue.ToString();
         this._tableDefine.DisplayTitle  = this.TE_DISPLAY.EditValue.ToString();
         this._tableDefine.ExtSecret     = this.TE_EXTFUN.EditValue.ToString();
         this._tableDefine.MainKey       = this.TE_MAINKEY.EditValue.ToString();
         this._tableDefine.NamespaceName = this.TE_NAMESPACE.EditValue.ToString();
         this._tableDefine.SecretFun     = this.TE_SECRETFUN.EditValue.ToString();
         this._tableDefine.TableName     = this.TE_TABLENAME.EditValue.ToString();
         this._tableDefine.TableType     = this.TE_TYPE.EditValue.ToString();
         this._tableDefine.ResourceType  = this.te_Res.EditValue.ToString().Split(',').ToList <string>();
         _mdc.SaveTableDefine(this._tableDefine);
     }
     this._haveChange = false;
     RaiseDataChanged();
 }