首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏葡萄城控件技术团队

    Wijmo 更优美的jQuery UI部件集:客户端更改C1GridView数据源

    ; da.SelectCommand = new OleDbCommand("SELECT * FROM [Customers] Order By [CustomerID]", con); da.UpdateCommand , con); da.UpdateCommand.Parameters.Add("@CompanyName", OleDbType.VarChar, 50, "CompanyName"); da.UpdateCommand.Parameters.Add ("@ContactName", OleDbType.VarChar, 50, "ContactName"); da.UpdateCommand.Parameters.Add("@City", OleDbType.VarChar , 50, "City"); da.UpdateCommand.Parameters.Add("@Country", OleDbType.VarChar, 50, "Country"); da.UpdateCommand.Parameters.Add

    3.6K90发布于 2018-01-10
  • 来自专栏老K博客

    使用 C# 和 SQL Server 实现数据库的实时数据同步

    (DateTime)dataReader["Last_Updated_Time"]; // 更新目标表中的数据 SqlCommand updateCommand Last_Updated_Time = @Last_Updated_Time WHERE ID = @ID", targetConnection); updateCommand.Parameters.AddWithValue ("@ID", id); updateCommand.Parameters.AddWithValue("@Name", name); updateCommand.Parameters.AddWithValue ("@Value", value); updateCommand.Parameters.AddWithValue("@Last_Updated_Time", last_updated_time ); int rowsAffected = updateCommand.ExecuteNonQuery(); if (rowsAffected

    2.4K10编辑于 2024-11-05
  • 来自专栏大内老A

    开发自己的Data Access Application Block[下篇]

    insertCommand.Connection = this.Connection; updateCommand.Connection = this.Connection; _transaction; updateCommand.Transaction = this. _transaction; updateCommand.Transaction = this. _transaction; updateCommand.Transaction = this. _transaction; updateCommand.Transaction = this.

    1.6K70发布于 2018-02-08
  • 来自专栏c#开发者

    Add a FileUpload control to your GridView [转]

    To pass the filename that is uploaded by the FileUpload control to your data-source control’s UpdateCommand To create a parameter that will be used by your UpdateCommand, you can add the parameter to the data-source an example of a SqlDataSource control where an Image parameter is added, and where the Select- and UpdateCommand The RowUpdating event will be trigged before the data-source control’s UpdateCommand is executed, so good place to change the value of the data-source parameters that will be passed to the data-source’s UpdateCommand

    1.7K60发布于 2018-04-12
  • 来自专栏跟着阿笨一起玩NET

    违反并发性: UpdateCommand影响了预期 1 条记录中的 0 条 解决办法

    本文转载:http://www.cnblogs.com/litianfei/archive/2007/08/16/858866.html UpdateCommand和DeleteCommand出现DBConcurrencyException 调试提示:违反并发性: DeleteCommand 影响了预期 1 条记录中的 0 条;或   违反并发性: UpdateCommand影响了预期 1 条记录中的 0 条。 2 DeleteCommand的问题:检查是否含有自动编号字段(Access的自动编号字段可能会引发此异常);    UpdateCommand的问题:检查更新的字段的原始值是否为空值(原始空值更新时可能会引发此异常

    5.1K20发布于 2018-09-18
  • 来自专栏Java架构师必看

    Gridview][UpdateCommand的写法要点]

    我们只需要添加一个sqldatasouce控件和一个GridView,再为sqldatasource写上正确的UpdateCommand语句就可以达到自动更新数据的目的。 基本上无需手写更新代码:但在写UpdateCommand语句时,需注意,updateCommand中各Sql更新参数的顺序必须与页面输出数据的顺序一致. /asp:TextBox>                 </EditItemTemplate>             </asp:TemplateField> 则在写SqlDataSource的updateCommand

    1.5K20发布于 2020-10-26
  • 来自专栏码匠的流水账

    聊聊CRDT

    > processCommand(UpdateCommand command) { final Map<String, Long> oldEntries = entries; Option.none() : Option.of(new UpdateCommand(crdtId, entries)); } ​ ​ // core functionality entries )); } ​ //...... } 这里GCounter使用HashMap来实现,其processCommand接收UpdateCommand > processCommand(PNCounter.UpdateCommand command) { final Map<String, Long> oldPEntries = pEntries Option.none() : Option.of(new UpdateCommand(crdtId, pEntries, nEntries)); } ​ ​

    4.8K40发布于 2019-05-08
  • 来自专栏Kubernetes

    runC源码分析——主体调用链

    spec.go) end startCommand(main.go)—>startCommand(start.go) stateCommand(main.go)—>stateCommand(state.go) updateCommand (main.go)—>updateCommand(update.go) ##runC to libcontainer ###checkpoint checkpointCommand(checkpoint.go Exec(libcontainer/container_linux.go) stateCommand(state.go)—>State(libcontainer/container_linux.go) updateCommand

    2K91发布于 2018-04-13
  • 来自专栏码匠的流水账

    聊聊CRDT

    nodeId, crdtId, BehaviorProcessor.create()); } // crdt @Override protected Option<UpdateCommand > processCommand(UpdateCommand command) { final Map<String, Long> oldEntries = entries; Option.none() : Option.of(new UpdateCommand(crdtId, entries)); } // core functionality > processCommand(PNCounter.UpdateCommand command) { final Map<String, Long> oldPEntries = pEntries Option.none() : Option.of(new UpdateCommand(crdtId, pEntries, nEntries)); }

    94530发布于 2019-05-15
  • 来自专栏全栈程序员必看

    DataGrid1_ItemDataBound[通俗易懂]

    System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_EditCommand_1); this.DataGrid1.UpdateCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_UpdateCommand); this.DataGrid1 e) { this.DataGrid1.EditItemIndex=e.Item.ItemIndex; bind(); } private void DataGrid1_UpdateCommand

    95830编辑于 2022-11-04
  • 来自专栏大内老A

    如何追踪每一笔记录的来龙去脉:一个完整的Audit Logging解决方案[下篇]

    insertCommand.CommandText = this.GetInsertStoredProcedureName(table.TableName);             updateCommand.CommandText = null)                 {                     updateCommand.Transaction = this. _transaction;                 }                 this.DiscoverParameters(updateCommand);                  foreach (DbParameter parameter in updateCommand.Parameters)                 {                     if  this.DbDataAdapter.InsertCommand = insertCommand;             this.DbDataAdapter.UpdateCommand = updateCommand

    76920编辑于 2022-05-09
  • 来自专栏刘晓杰

    .net的DataTable.AcceptChanges解释

    其实, 最终的操作效果还是决定于 DataAdapter 的 SelectCommand, UpdateCommand 等 DbCommand. 如果, 在 UpdateCommand 中写入 Delete 语句或者执行有删除操作的存储过程, 那么状态为 Modified 的 DataRow 最终将在数据库中删除而不是更新 a.

    1K20发布于 2019-02-21
  • 来自专栏艳艳代码杂货店

    C#的SQLiteHelper类似SqlHelper类实现存取Sqlite数据库

    .: /// UpdateDataset(conn, insertCommand, deleteCommand, updateCommand, dataSet, "Order"); public static void UpdateDataset(SQLiteCommand insertCommand, SQLiteCommand deleteCommand, SQLiteCommand updateCommand if (deleteCommand == null) throw new ArgumentNullException("deleteCommand"); if (updateCommand == null) throw new ArgumentNullException("updateCommand"); if (tableName == null || tableName.Length = updateCommand; dataAdapter.InsertCommand = insertCommand; dataAdapter.DeleteCommand

    2.6K30发布于 2021-10-27
  • 来自专栏CBeann的博客

    MySQL的DataAdapter用法

    建立 CommandBuilder 对象来自动生成 DataAdapter 的 Command 命令,否则就要自己编写 //Insertcommand ,deletecommand , updatecommand 建立 CommandBuilder 对象来自动生成 DataAdapter 的 Command 命令,否则就要自己编写 //Insertcommand ,deletecommand , updatecommand 建立 CommandBuilder 对象来自动生成 DataAdapter 的 Command 命令,否则就要自己编写 //Insertcommand ,deletecommand , updatecommand

    86710编辑于 2023-12-25
  • 来自专栏Java架构师必看

    asp.net 2.0中一次性更新所有GRIDVIEW的记录

    有两种方法,一种是使用sqldatasource来更新 所有记录,但这个方法比较慢,因为每更新一条记录都要建立数据连接并执行updatecommand,会影响性能, 但还是先来看下实现方法: <%@ SelectCommand="SELECT [CustomerID], [CompanyName], [ContactName], [ContactTitle] FROM [Customers]"             UpdateCommand

    1.7K30发布于 2021-03-22
  • 来自专栏cs

    ASP.NET 数据库访问

    ([name], [id], [age], [sf]) VALUES (@name, @id, @age, @sf)" SelectCommand="SELECT * FROM [person]" UpdateCommand age], [sf]) VALUES (@name, @id, @age, @sf)" SelectCommand="SELECT * FROM [person] WHERE ([id] = @id)" UpdateCommand

    7K60发布于 2018-04-27
  • 来自专栏全栈程序员必看

    OleDbCommand更新数据的一些问题

    OleDbDataAdapter myDataAdapter2 = new OleDbDataAdapter(); myDataAdapter2.UpdateCommand

    39420编辑于 2022-08-26
  • 来自专栏跟着阿笨一起玩NET

    DBHelper数据库操作类(一)

    adapter)         {             DbCommandBuilder cb = CreateCommandBuilder(adapter);             adapter.UpdateCommand adapter.DeleteCommand.Transaction = tran;             adapter.SelectCommand.Transaction = tran;             adapter.UpdateCommand.Transaction cmdBuilder.GetDeleteCommand();                 adapter.InsertCommand = cmdBuilder.GetInsertCommand();                 adapter.UpdateCommand

    4.9K10发布于 2018-09-18
  • 来自专栏Java架构师必看

    ASP.NET2.0中用Gridview控件操作数据

    在Gridview中,有两种实现的方法,下面分别进行介绍: 先来看下第一种方法,本方法是使用sqldatasource来更新所有记录,但这个方法比较慢,因为每更新一条记录都要建立数据连接并执行updatecommand SelectCommand="SELECT [CustomerID], [CompanyName], [ContactName], [ContactTitle] FROM [Customers]" UpdateCommand 之后并指出sqldatasource的updatecommand语句。

    2.3K10发布于 2021-03-22
  • 来自专栏全栈程序员必看

    使用OleDbDataAdapter更新Access

    Concurrency violation: the UpdateCommand affected 0 of the expected 1 records 注意:数据类型要正确、SQL中的参数要和加入command

    1.1K20编辑于 2022-11-15
领券