IGroupMeta.Level Property
.NET Standard 2.x
Gets the level of this group.
Namespace: DWNet.Data
Assembly: DWNet.Data.dll
Syntax
short Level { get; }
Return
System.Int16
The level of this group. Starts at 1.
Examples
The following code example demonstrates how to use the Level property.
using DWNet.Data;
using System;
namespace Appeon.ApiDoc.IGroupMetaExamples
{
public class LevelExample
{
private readonly SchoolContext _context;
public LevelExample(SchoolContext dataContext)
{
// Sets the data context
_context = dataContext;
}
public void Example()
{
// Instantiates datastore with datawindow: d_department_course
var datastore = new DataStore("d_department_course", _context);
datastore.Retrieve();
// Gets the properties for the Groups keyword.
var groupMetas = datastore.DwMeta.Groups;
Console.WriteLine("Groups Count: {0}", groupMetas.Count);
foreach (var item in groupMetas)
{
Console.WriteLine("Level: {0}", item.Level);
}
/*This code produces the following output:
Groups Count: 2
Level: 1;
Level: 2;
*/
}
}
}
Example Refer To
Model Class: D_Department_Course
DataWindow File: d_department_course
Applies to
.NET Standard
2.x