Sample Code
This is the class code that goes with the sample. Table data is loaded into
objects. This class represents data from the Customers table.
This code, along with the main program code represents an entire working program. You can
find the main code here.
using System;
using Revelation.Dali;
namespace Revelation.Sample
{
[DaliClass(TableName="Customers")]
public class Customer
{
[DaliMember(ColumnName="CustomerID")]
public string CustomerID;
[DaliMember(ColumnName="CompanyName")]
public string CompanyName;
[DaliMember(ColumnName="ContactName")]
public string ContactName;
[DaliMember(ColumnName="ContactTitle")]
public string ContactTitle;
[DaliMember(ColumnName="Phone")]
public string Phone;
public Customer()
{
}
}
}