📄 fetchpath.cs
字号:
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
using System;
using System.Collections;
using OrmLib;
namespace ORMBiz
{
/// <summary>
/// Specify the tables that need to be fetched.
/// </summary>
/// <remarks>
/// This is a custom class type that should be used as an extended enumerator.
/// It is designed as a tree of enumerators.
/// It is to be used to map out the path to take through relationships to
/// retrieve related tables.
/// </remarks>
public class FetchPath
{
private FetchPath(){}
/// <summary>
/// Start the fetch from Column
/// </summary>
/// <remarks>
/// The FetchPath must start at the root table being fetched.
/// i.e the DataManager.Get<TableName1>() and The FetchPath.<TableName1>.<more tables>.... should match
/// </remarks>
public static FetchPath._.ColumnRelation Column{ get { return new FetchPath._.ColumnRelation(new ArrayList(), "Column"); } }
/// <summary>
/// Start the fetch from Database
/// </summary>
/// <remarks>
/// The FetchPath must start at the root table being fetched.
/// i.e the DataManager.Get<TableName1>() and The FetchPath.<TableName1>.<more tables>.... should match
/// </remarks>
public static FetchPath._.DatabaseRelation Database{ get { return new FetchPath._.DatabaseRelation(new ArrayList(), "Database"); } }
/// <summary>
/// Start the fetch from DataType
/// </summary>
/// <remarks>
/// The FetchPath must start at the root table being fetched.
/// i.e the DataManager.Get<TableName1>() and The FetchPath.<TableName1>.<more tables>.... should match
/// </remarks>
public static FetchPath._.DataTypeRelation DataType{ get { return new FetchPath._.DataTypeRelation(new ArrayList(), "DataType"); } }
/// <summary>
/// Start the fetch from Param
/// </summary>
/// <remarks>
/// The FetchPath must start at the root table being fetched.
/// i.e the DataManager.Get<TableName1>() and The FetchPath.<TableName1>.<more tables>.... should match
/// </remarks>
public static FetchPath._.ParamRelation Param{ get { return new FetchPath._.ParamRelation(new ArrayList(), "Param"); } }
/// <summary>
/// Start the fetch from Procedure
/// </summary>
/// <remarks>
/// The FetchPath must start at the root table being fetched.
/// i.e the DataManager.Get<TableName1>() and The FetchPath.<TableName1>.<more tables>.... should match
/// </remarks>
public static FetchPath._.ProcedureRelation Procedure{ get { return new FetchPath._.ProcedureRelation(new ArrayList(), "Procedure"); } }
/// <summary>
/// Start the fetch from Relation
/// </summary>
/// <remarks>
/// The FetchPath must start at the root table being fetched.
/// i.e the DataManager.Get<TableName1>() and The FetchPath.<TableName1>.<more tables>.... should match
/// </remarks>
public static FetchPath._.RelationRelation Relation{ get { return new FetchPath._.RelationRelation(new ArrayList(), "Relation"); } }
/// <summary>
/// Start the fetch from RelationColumn
/// </summary>
/// <remarks>
/// The FetchPath must start at the root table being fetched.
/// i.e the DataManager.Get<TableName1>() and The FetchPath.<TableName1>.<more tables>.... should match
/// </remarks>
public static FetchPath._.RelationColumnRelation RelationColumn{ get { return new FetchPath._.RelationColumnRelation(new ArrayList(), "RelationColumn"); } }
/// <summary>
/// Start the fetch from Table
/// </summary>
/// <remarks>
/// The FetchPath must start at the root table being fetched.
/// i.e the DataManager.Get<TableName1>() and The FetchPath.<TableName1>.<more tables>.... should match
/// </remarks>
public static FetchPath._.TableRelation Table{ get { return new FetchPath._.TableRelation(new ArrayList(), "Table"); } }
/// <summary>
/// Internal class - do not instantiate directly. See <see cref="FetchPath"/>.
/// </summary>
public class _
{
private _(){}
/// <summary>
/// Internal class - do not instantiate directly. See <see cref="FetchPath"/>.
/// </summary>
public class ColumnRelation : DataManagerBase.FetchPathRelation
{
/// <summary>
/// Internal class - do not instantiate directly. See <see cref="FetchPath"/>.
/// </summary>
internal ColumnRelation(ArrayList relationList, string alias) { this.RelationList = relationList; this.OrmAlias = alias;}
/// <summary>
/// Fetch all related children and parents
/// </summary>
public ColumnRelation All
{
get
{
RelationList.Add(new DataManagerBase.Relation("DataType","ID","Column","FKDataTypeID", this.OrmAlias, this.OrmAlias + "_Data4", true));
RelationList.Add(new DataManagerBase.Relation("Table","ID","Column","FKTableID", this.OrmAlias, this.OrmAlias + "_Tabl6", true));
return this;
}
}
/// <summary>
/// Fetch all related children
/// </summary>
public ColumnRelation AllChildren
{
get
{
return this;
}
}
/// <summary>
/// Fetch all related parents
/// </summary>
public ColumnRelation AllParents
{
get
{
RelationList.Add(new DataManagerBase.Relation("DataType","ID","Column","FKDataTypeID", this.OrmAlias, this.OrmAlias + "_Data4", true));
RelationList.Add(new DataManagerBase.Relation("Table","ID","Column","FKTableID", this.OrmAlias, this.OrmAlias + "_Tabl6", true));
return this;
}
}
/// <summary>
/// Include this table through this relation.
/// </summary>
public FetchPath._.DataTypeRelation DataType
{
get
{
RelationList.Add(new DataManagerBase.Relation("DataType","ID","Column","FKDataTypeID", this.OrmAlias, this.OrmAlias + "_Data4", true ));
return new FetchPath._.DataTypeRelation(RelationList, this.OrmAlias + "_Data4");
}
}
/// <summary>
/// Include this table through this relation.
/// </summary>
public FetchPath._.TableRelation Table
{
get
{
RelationList.Add(new DataManagerBase.Relation("Table","ID","Column","FKTableID", this.OrmAlias, this.OrmAlias + "_Tabl6", true ));
return new FetchPath._.TableRelation(RelationList, this.OrmAlias + "_Tabl6");
}
}
}
/// <summary>
/// Internal class - do not instantiate directly. See <see cref="FetchPath"/>.
/// </summary>
public class DatabaseRelation : DataManagerBase.FetchPathRelation
{
/// <summary>
/// Internal class - do not instantiate directly. See <see cref="FetchPath"/>.
/// </summary>
internal DatabaseRelation(ArrayList relationList, string alias) { this.RelationList = relationList; this.OrmAlias = alias;}
/// <summary>
/// Fetch all related children and parents
/// </summary>
public DatabaseRelation All
{
get
{
RelationList.Add(new DataManagerBase.Relation("Database","ID","Procedure","FKDatabaseID", this.OrmAlias, this.OrmAlias + "_Proc1", false));
RelationList.Add(new DataManagerBase.Relation("Database","ID","Table","FKDatabaseID", this.OrmAlias, this.OrmAlias + "_Tabl5", false));
return this;
}
}
/// <summary>
/// Fetch all related children
/// </summary>
public DatabaseRelation AllChildren
{
get
{
RelationList.Add(new DataManagerBase.Relation("Database","ID","Procedure","FKDatabaseID", this.OrmAlias, this.OrmAlias + "_Proc1", false));
RelationList.Add(new DataManagerBase.Relation("Database","ID","Table","FKDatabaseID", this.OrmAlias, this.OrmAlias + "_Tabl5", false));
return this;
}
}
/// <summary>
/// Fetch all related parents
/// </summary>
public DatabaseRelation AllParents
{
get
{
return this;
}
}
/// <summary>
/// Include this table through this relation.
/// </summary>
public FetchPath._.ProcedureRelation Procedure
{
get
{
RelationList.Add(new DataManagerBase.Relation("Database","ID","Procedure","FKDatabaseID", this.OrmAlias, this.OrmAlias + "_Proc1", false ));
return new FetchPath._.ProcedureRelation(RelationList, this.OrmAlias + "_Proc1");
}
}
/// <summary>
/// Include this table through this relation.
/// </summary>
public FetchPath._.TableRelation Table
{
get
{
RelationList.Add(new DataManagerBase.Relation("Database","ID","Table","FKDatabaseID", this.OrmAlias, this.OrmAlias + "_Tabl5", false ));
return new FetchPath._.TableRelation(RelationList, this.OrmAlias + "_Tabl5");
}
}
}
/// <summary>
/// Internal class - do not instantiate directly. See <see cref="FetchPath"/>.
/// </summary>
public class DataTypeRelation : DataManagerBase.FetchPathRelation
{
/// <summary>
/// Internal class - do not instantiate directly. See <see cref="FetchPath"/>.
/// </summary>
internal DataTypeRelation(ArrayList relationList, string alias) { this.RelationList = relationList; this.OrmAlias = alias;}
/// <summary>
/// Fetch all related children and parents
/// </summary>
public DataTypeRelation All
{
get
{
RelationList.Add(new DataManagerBase.Relation("DataType","ID","Param","FKDataTypeID", this.OrmAlias, this.OrmAlias + "_Para3", false));
RelationList.Add(new DataManagerBase.Relation("DataType","ID","Column","FKDataTypeID", this.OrmAlias, this.OrmAlias + "_Colu4", false));
return this;
}
}
/// <summary>
/// Fetch all related children
/// </summary>
public DataTypeRelation AllChildren
{
get
{
RelationList.Add(new DataManagerBase.Relation("DataType","ID","Param","FKDataTypeID", this.OrmAlias, this.OrmAlias + "_Para3", false));
RelationList.Add(new DataManagerBase.Relation("DataType","ID","Column","FKDataTypeID", this.OrmAlias, this.OrmAlias + "_Colu4", false));
return this;
}
}
/// <summary>
/// Fetch all related parents
/// </summary>
public DataTypeRelation AllParents
{
get
{
return this;
}
}
/// <summary>
/// Include this table through this relation.
/// </summary>
public FetchPath._.ParamRelation Param
{
get
{
RelationList.Add(new DataManagerBase.Relation("DataType","ID","Param","FKDataTypeID", this.OrmAlias, this.OrmAlias + "_Para3", false ));
return new FetchPath._.ParamRelation(RelationList, this.OrmAlias + "_Para3");
}
}
/// <summary>
/// Include this table through this relation.
/// </summary>
public FetchPath._.ColumnRelation Column
{
get
{
RelationList.Add(new DataManagerBase.Relation("DataType","ID","Column","FKDataTypeID", this.OrmAlias, this.OrmAlias + "_Colu4", false ));
return new FetchPath._.ColumnRelation(RelationList, this.OrmAlias + "_Colu4");
}
}
}
/// <summary>
/// Internal class - do not instantiate directly. See <see cref="FetchPath"/>.
/// </summary>
public class ParamRelation : DataManagerBase.FetchPathRelation
{
/// <summary>
/// Internal class - do not instantiate directly. See <see cref="FetchPath"/>.
/// </summary>
internal ParamRelation(ArrayList relationList, string alias) { this.RelationList = relationList; this.OrmAlias = alias;}
/// <summary>
/// Fetch all related children and parents
/// </summary>
public ParamRelation All
{
get
{
RelationList.Add(new DataManagerBase.Relation("Procedure","ID","Param","FKProcedureID", this.OrmAlias, this.OrmAlias + "_Proc2", true));
RelationList.Add(new DataManagerBase.Relation("DataType","ID","Param","FKDataTypeID", this.OrmAlias, this.OrmAlias + "_Data3", true));
return this;
}
}
/// <summary>
/// Fetch all related children
/// </summary>
public ParamRelation AllChildren
{
get
{
return this;
}
}
/// <summary>
/// Fetch all related parents
/// </summary>
public ParamRelation AllParents
{
get
{
RelationList.Add(new DataManagerBase.Relation("Procedure","ID","Param","FKProcedureID", this.OrmAlias, this.OrmAlias + "_Proc2", true));
RelationList.Add(new DataManagerBase.Relation("DataType","ID","Param","FKDataTypeID", this.OrmAlias, this.OrmAlias + "_Data3", true));
return this;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -