Exemplo n.º 1
0
        /// <summary>
        /// 添加一个Put操作
        /// </summary>
        /// <param name="condition">检查条件</param>
        /// <param name="primaryKey">主键</param>
        /// <param name="attributeColumns">属性</param>
        public void AddPut(Condition condition, PrimaryKey primaryKey, AttributeColumns attributeColumns)
        {
            var item = new RowPutChange(TableName, primaryKey)
            {
                Condition = condition
            };

            if (attributeColumns != null)
            {
                foreach (var column in attributeColumns)
                {
                    item.AddColumn(column.Key, column.Value);
                }
            }

            RowPutChanges.Add(item);
        }