Show / Hide Table of Contents

    DataStoreExtensions Class

    .NET Standard 2.x

    Provides the extension methods for DataStore.

    Namespace: PowerScript.Bridge

    Assembly: PowerScript.Bridge.dll

    Syntax

    public static partial class DataStoreExtensions
    

    Methods

    Name Return Type Description
    Describe(string propertyList) string Returns the property values of the DataStore model. You specify one or more properties as a string, and the Describe method returns the values of the properties.
    ExportJson(bool format = false) string Exports data from the DataStore primary buffer to a plain JSON string or DataWindow JSON string.
    ExportJson(bool primarydata, bool filterdata, bool deletedata, bool dwcdata, bool format = false) string Exports data from the specified buffer(s) and/or DataWindowChild to a plain JSON string or DataWindow JSON string.
    ExportJson(DwBuffer dwbuffer, bool changedonly, bool format) string Exports all rows or only the changed rows from all or specified buffers to a plain JSON string or DataWindow JSON string.
    ExportJson(DwBuffer dwbuffer, int startRow = 0, int endRow = -1, int startColumn = 0, int endColumn = -1, bool format = false) string Exports all data or the specified rows and/or columns from the specified buffer to a plain JSON string or DataWindow JSON string.
    GetBlock<TModel>(int startRow, short startColumn, int endRow, short endColumn, DwBuffer bufferType = DwBuffer.Primary, bool isOriginalValue = false) TModel[] Gets the data from the specified range of rows and columns from the specified buffer.
    GetNextModified(int row, DwBuffer dwbuffer) int Reports the next row that has been modified in the specified buffer.
    GetRowData<TModel>(int row, DwBuffer bufferType = DwBuffer.Primary, bool isOriginalValue = false) TModel Gets the data of the specified row in DataStore.
    GetRowsData<TModel>(DwBuffer bufferType = DwBuffer.Primary, bool isOriginalValue = false) TModel[] Gets the data of all rows in the specified buffer.
    GetValues<TValue>(string column, DwBuffer bufferType = DwBuffer.Primary, bool isOriginalValue = false) TValue[] Gets the data of the specified column.
    GetValues<TValue>(string column, int startRow, int endRow, DwBuffer bufferType = DwBuffer.Primary, bool isOriginalValue = false) TValue[] Gets the data from the specified column and from the specified ranges of rows.
    ImportJson(string json, ref string error, DwBuffer dwbuffer = DwBuffer.Primary, int startRow = 0, int endRow = -1, int startColumn = 0, int endColumn = -1, int dwStartColumn = 0) int Inserts data from a JSON string into a DataStore object.
    ImportJsonByKey(string json, ref string error, DwBuffer dwbuffer = DwBuffer.Primary, int startRow = 0, int endRow = -1) int Inserts data from a JSON string into a DataStore object according to the key name of the JSON item.
    ImportRowFromJson(string json, int row, ref string error, DwBuffer dwbuffer = DwBuffer.Primary) int Inserts a data row from a JSON string into a DataStore object.
    ImportString(DataFormat importType, string text, int startRow = 0, int endRow = -1, int startColumn = 0, int endColumn = -1, int dwStartColumn = 0) int Inserts the data from a string to DataStore. The string can be in the format of JSON, XML, or TXT.
    Modify(string modString) string Modifies a DataStore object by applying specifications, given as a list of instructions, that change the DataStore object's definition.
    SetBlock(int startRow, short startColumn, int endRow, short endColumn, object value, DwBuffer bufferType = DwBuffer.Primary) void Sets the data values for the specified range of rows and columns in DataStore.
    SetItem(int row, short column, object value, DwBuffer bufferType = DwBuffer.Primary) void Sets the data value at the specified row and column in the specified buffer.
    SetItem(int row, string column, object value, DwBuffer bufferType = DwBuffer.Primary) void Sets the data value at the specified row and column in the specified buffer.
    SetRowData(int row, object value, DwBuffer bufferType = DwBuffer.Primary) void Sets the data value for the specified row in the specified buffer of DataStore.
    SetRowsData(object value, DwBuffer bufferType = DwBuffer.Primary) void Sets the data value for the specified rows in the specified buffer of DataStore.
    SetValues(string column, object value, DwBuffer bufferType = DwBuffer.Primary) void Sets the data value for the specified column in the specified buffer.
    SetValues(string column, int startRow, int endRow, object value, DwBuffer bufferType = DwBuffer.Primary) void Sets the data value for the specified column and the specified range of rows in the specified buffer.
    Update(bool resetFlag, PbResultStyle resultStyle) int Updates the database with the changes made in the DataStore.
    Back to top Generated by Appeon