コード例 #1
0
        public override async Task <Empty> UpdateIntField(UpdateIntFieldInput request, ServerCallContext context)
        {
            await _dataAccess.UpdateFieldAsync(request.Data.RowId,
                                               request.Data.ColumnName,
                                               ConvertDbTablesToString(request.Data.TableName),
                                               request.NewValue);

            return(new Empty());
        }
コード例 #2
0
        internal async Task UpdateFieldAsync(GrpcChannel channel, int objectId, string columnName, DbTables tableName, int value)
        {
            var client = new DbUpdates.DbUpdatesClient(channel);
            var input  = new UpdateIntFieldInput
            {
                Data     = CreateUpdateDataMessage(objectId, columnName, tableName),
                NewValue = value
            };

            await client.UpdateIntFieldAsync(input);
        }