IReportMeta.Nest_Arguments Property
.NET Standard 2.x
Gets parameter names passed to the report.
Namespace: DWNet.Data
Assembly: DWNet.Data.dll
Syntax
IReadOnlyList<string> Nest_Arguments { get; }
Return
System.Collections.Generic.ReadOnlyList<string>
Returns a list of parameter names passed to the report.
Examples
The following code example demonstrates how to use the NestArgument property.
using DWNet.Data;
using System;
namespace Appeon.ApiDoc.IReportMetaExamples
{
public class NestArgumentExample
{
private readonly SchoolContext _context;
public NestArgumentExample(SchoolContext dataContext)
{
// Sets the data context
_context = dataContext;
}
public void Example()
{
// Instantiates datastore with datawindow: d_department_with_report
var datastore = new DataStore("d_department_with_report", _context);
datastore.Retrieve();
// Gets the model embedded in the DataStore.
var reportMetas = datastore.DwMeta.Reports;
Console.WriteLine("Reports Count: {0}", reportMetas.Count);
foreach (var item in reportMetas)
{
foreach (string argsItem in item.Nest_Arguments)
{
Console.WriteLine("Nest_Argument: {0}", argsItem);
}
}
/*This code produces the following output:
Reports Count: 1
Nest_Argument: departmentid
*/
}
}
}
Example Refer To
Model Class: D_Department_With_Report
DataWindow File: d_department_with_report
Applies to
.NET Standard
2.x