Show / Hide Table of Contents

    IDwTable.UpdateTable Property

    .NET Standard 2.x

    Gets a string from the DataWindow syntax which specifies the name of the database table used to build the Update syntax. This property is not used in .NET DataStore; it is used in PowerBuilder.

    But when updating the database table with .NET DataStore, the updated table will come from the primary table in the model and will no longer depend on the UpdateTable property.

    Namespace: DWNet.Data

    Assembly: DWNet.Data.dll

    Syntax

       string UpdateTable { get; set; }
    

    Property Value

    System.String

    A string specifying the name of the database table used to build the Update syntax in PowerBuilder.

    Examples

    The following code example demonstrates how to get the DataWindow.Table.UpdateTable property.

    using DWNet.Data;
    using System;
    
    namespace Appeon.ApiDoc.IDwTableExamples
    {
        public class UpdateTableExample
        {
            private readonly SchoolContext _context;
    
            public UpdateTableExample(SchoolContext context)
            {
                _context = context;
            }
    
            public void Example()
            {
                // Creates a new DataStore object.
                var course = new DataStore("d_course", _context);
    
                // Gets the DataWindow.Table.UpdateTable property.
                string updateTable = course.DwMeta.DataWindow.Table.UpdateTable;
    
                Console.WriteLine("UpdateTable = {0}", updateTable);
    
                /*This code produces the following output:
    
                UpdateTable = Course
                */
            }
        }
    }
    

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon