IExportMeta.Xml Property
.NET Standard 2.x
Gets the information of the XML export template in the DataStore model.
Namespace: DWNet.Data
Assembly: DWNet.Data.dll
Syntax
IExportXmlMeta Xml { get; }
Return
DWNet.Data.IExportXmlMeta
Returns an IExportXmlMeta
object which contains the information of the export target in the model.
Examples
The following code example demonstrates how to use the Xml property.
using DWNet.Data;
using System;
namespace Appeon.ApiDoc.IExportMetaExamples
{
public class XmlExample
{
private readonly SchoolContext _context;
public XmlExample(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 export template in the DataStore model.
var windowMeta = datastore.DwMeta.DataWindow;
var exportMeta = windowMeta.Export;
var exportXmlMeta = exportMeta.Xml;
Console.WriteLine("Templates Count: {0}", exportXmlMeta.Templates.Count);
Console.WriteLine("UseTemplate: {0}", exportXmlMeta.UseTemplate);
/*This code produces the following output:
Templates Count: 1
UseTemplate: xml_default
*/
}
}
}
Example Refer To
Model Class: D_Department
DataWindow File: d_department
Applies to
.NET Standard
2.x