IWindowMeta.Import Property
.NET Standard 2.x
Gets or sets the information of the XML import template in the model.
Namespace: DWNet.Data
Assembly: DWNet.Data.dll
Syntax
IImportMeta Import { get; set; }
Return
Returns an IImportMeta object which contains the information of the XML import template in the model.
Examples
The following code example demonstrates how to use the Import property.
using DWNet.Data;
using System;
namespace Appeon.ApiDoc.DwMetaExamples
{
public class ImportExample
{
private readonly SchoolContext _context;
public ImportExample(SchoolContext dataContext)
{
// Sets the data context
_context = dataContext;
}
public void Example()
{
// Instantiates datastore with datawindow: d_department
var datastore = new DataStore("d_department", _context);
datastore.Retrieve();
// Gets the information of the XML import template in the DataStore model.
IWindowMeta windowMeta = datastore.DwMeta.DataWindow;
IImportMeta importMeta = windowMeta.Import;
IImportXmlMeta importXmlMeta = importMeta.Xml;
Console.WriteLine("UseTemplate: {0}", importXmlMeta.UseTemplate);
/*This code produces the following output:
UseTemplate: ""
*/
}
}
}
Example Refer To
Model Class: D_Department
DataWindow File: d_department
Applies to
.NET Standard
2.x