using System;
using Grove.DataObject;
[RelationTable("CustomersRelationQuery",BeginWithTable="Customers")]
public class CustomersRelationQuery
{
[RelationReflect("Customers","Addresses")]
[RelationField("CustomerID","AddressID")]
public string Relationship_1
{
get{return "[Customers].[CustomerID]=[Addresses].[AddressID]";}
}
int _CustomerID;
[DataField("CustomerID",TableName="Customers")]
public int CustomerID
{
get{return this._CustomerID;}
set{this._CustomerID=value;}
}
string _CustomerName;
[DataField("CustomerName",TableName="Customers")]
public string CustomerName
{
get{return this._CustomerName;}
set{this._CustomerName=value;}
}
string _CustomerDesc;
[DataField("CustomerDesc",TableName="Customers")]
public string CustomerDesc
{
get{return this._CustomerDesc;}
set{this._CustomerDesc=value;}
}
string _Address;
[DataField("Address",TableName="Addresses")]
public string Address
{
get{return this._Address;}
set{this._Address=value;}
}
} |