using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Ant.ORM
{
public class JoinOnTableNode
{
private string name;// 节点名称
private JoinOnTableNode parent;// 父节点
// 孩子节点
public JoinOnTableNode()
{
}
//
/// 主表
///
public string TableName;
///
/// 主表别名
///
public string TableAsName;
//
/// 关联表
///
public string NTableName;
///
/// 关联表别名
///
public string NTableAsName;
///
/// 关联方式
///
public JoinTypes JoinType;
///
/// 关联条件
///
public string JoinOn1;
///
/// 关联条件
///
public string JoinOn2;
public JoinOnTableNode getParent()
{
return parent;
}
public void setParent(JoinOnTableNode parent)
{
this.parent = parent;
}
protected JionNodeCollection _nodes;
///
/// 节点
///
public JionNodeCollection Nodes
{
get
{
if (_nodes == null)
{
_nodes = new JionNodeCollection();
}
return _nodes;
}
}
}
public class JoinColumns
{
///
/// on主关联条件
///
public string M_OnWhere
{
get;
set;
}
///
/// on次关联条件
///
public string N_OnWhere
{
get;
set;
}
}
}