Show / Hide Table of Contents

    IDataStoreBase.RetrieveEnd Event

    .NET Standard 2.x

    Occurs when the retrieval is completed.

    Namespace: DWNet.Data

    Assembly: DWNet.Data.dll

    Syntax

      public event DwEventHandler<object, DwRetrieveEventArgs> RetrieveEnd;
    

    Remarks

    The number of rows retrieved in the DwRetrieveEventArgs.RowCount argument is an unfiltered value.

    Examples

    The following code example demonstrates that the RetrieveEnd event is triggered when DataStore finished retrieving data.

    using DWNet.Data;
    using System;
    
    namespace Appeon.ApiDoc.IDataStoreBaseExamples
    {
        public class RetrieveEndExample
        {
            private SchoolContext _context;
    
            public RetrieveEndExample(SchoolContext dataContext)
            {
                // Sets the data context.
                _context = dataContext;
            }
    
            public void Example()
            {
                // Instantiates datastore with datawindow: d_department
                var department = new DataStore("d_department", _context);
    
                // Defines what to do after retrieval completes.
                department.RetrieveEnd +=
                    (object sender, DwRetrieveEventArgs args) =>
                    {
                        Console.WriteLine("Retrieve Count = {0}", args.RowCount);
                    };
    
                department.Retrieve();
    
                /*This code produces the following output:
                
                Retrieve Count = 4
                */
            }
        }
    }
    

    Example Refer To

    Model Class: D_Department
    DataWindow File: d_department

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon