本文整理汇总了C#中QueryType类的典型用法代码示例。如果您正苦于以下问题:C# QueryType类的具体用法?C# QueryType怎么用?C# QueryType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
QueryType类属于命名空间,在下文中一共展示了QueryType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: QuerySwitch
public DataTable QuerySwitch(QueryType QT,
ArrayList ParameterList
)
{
DBO.VDM_VCMSLevelDBO dbo = new VDM_VCMSLevelDBO(ref USEDB);
DataTable Dt;
try
{
switch (QT)
{
case QueryType.ALL:
Dt = dbo.doQueryAll();
break;
case QueryType.CODE:
Dt = dbo.doQueryByCode(ParameterList);
break;
case QueryType.ID:
Dt = dbo.doQueryByID(ParameterList);
break;
case QueryType.Custom:
Dt = dbo.doQueryByFind(ParameterList);
break;
default:
Dt = new DataTable();
break;
}
return Dt;
}
catch (Exception ex)
{
throw ex;
}
}
示例2: QuerySwitch
public DataTable QuerySwitch(QueryType QT,
ArrayList ParameterList
)
{
DBO.RemoveDataDetail dbo = new RemoveDataDetail(ref USEDB);
DataTable Dt;
try
{
switch (QT)
{
case QueryType.ALL:
Dt = dbo.doQueryAll();
break;
case QueryType.ID:
Dt = dbo.doQueryByID(ParameterList);
break;
case QueryType.Custom:
Dt = dbo.doQueryByFind(ParameterList);
break;
default:
Dt = new DataTable();
break;
}
return Dt;
}
catch (Exception ex)
{
throw ex;
}
}
示例3: QuerySwitch
public DataTable QuerySwitch(QueryType QT,
ArrayList ParameterList
)
{
DBO.MKT_PurchaseCardNondissStDBO dbo = new MKT_PurchaseCardNondissStDBO(ref USEDB);
DataTable Dt;
try
{
switch (QT)
{
case QueryType.ALL:
Dt = dbo.doQueryAll();
break;
case QueryType.ID:
Dt = dbo.doQueryByID(ParameterList);
break;
case QueryType.Custom:
Dt = dbo.doQueryByFind(ParameterList);
break;
default:
Dt = new DataTable();
break;
}
return Dt;
}
catch (Exception ex)
{
throw ex;
}
}
示例4: QuerySwitch
public DataTable QuerySwitch(QueryType QT, ArrayList ParameterList)
{
#region
VDS_ALO_POSOURCE_NO_TMP_DBO ALOM = new VDS_ALO_POSOURCE_NO_TMP_DBO(ref USEDB);
DataTable Dt;
try
{
switch (QT)
{
case QueryType.CheckCurrentItemStatus:
Dt = ALOM.doCheckCurrentItemStatus(ParameterList);
break;
case QueryType.GetPOSOURCE_NO_TmpSchema:
Dt = ALOM.GetPOSOURCE_NO_TmpSchema(ParameterList);
break;
default:
Dt = new DataTable();
break;
}
return Dt;
}
catch (Exception ex)
{
throw GetNewException(ex);
}
#endregion
}
示例5: QuerySwitch
public DataTable QuerySwitch(QueryType QT, ArrayList ParameterList)
{
DBO.VDS_CRM_RECORD_MAINDBO VCRM = new VDS_CRM_RECORD_MAINDBO(ref USEDB);
DBO.VDS_CRM_RECORD_DETLDBO VCRD = new VDS_CRM_RECORD_DETLDBO(ref USEDB);
DataTable Dt;
try
{
switch (QT)
{
case QueryType.QueryLastThreeCRMRecord:
Dt = VCRM.DO_CRM011_QUERY_RECORD_THREE(ParameterList);
break;
case QueryType.CRM011_DETL_SCHEMA:
Dt = VCRD.DO_CRM011_DETAIL_SCHEMA(ParameterList);
break;
default:
Dt = new DataTable();
break;
}
return Dt;
}
catch (Exception ex)
{
throw GetNewException(ex);
}
}
示例6: Query
public Query(QueryType type, long token, ReqlAst term, OptArgs globalOptions)
{
this.Type = type;
this.Token = token;
this.Term = term;
this.GlobalOptions = globalOptions;
}
示例7: Lambda
/// <summary>
/// Creates a LinqLambdaType given the body type and parameter types.
/// </summary>
/// <param name="bodyType">Type of the lambda body.</param>
/// <param name="parameterTypes">Collection of lambda parameter types.</param>
/// <returns>LinqLambdaType with given body and parameter types.</returns>
public static LinqLambdaType Lambda(QueryType bodyType, IEnumerable<QueryType> parameterTypes)
{
ExceptionUtilities.CheckArgumentNotNull(bodyType, "bodyType");
ExceptionUtilities.CheckArgumentNotNull(parameterTypes, "parameterTypes");
return new LinqLambdaType(bodyType, parameterTypes, bodyType.EvaluationStrategy);
}
示例8: Query
/// <summary>
/// Инициализирует новый запрос
/// </summary>
/// <param name="type">Тип запроса</param>
/// <param name="sql">Текст запроса</param>
/// <param name="storedProcedure">Является ли хранимой процедурой</param>
/// <param name="parameters">Параметры запроса</param>
public Query(QueryType type, string sql, bool storedProcedure, params DbParam[] parameters)
{
Sql = sql;
Parameters = parameters;
Type = type;
StoredProcedure = storedProcedure;
}
示例9: SQLWriter
public SQLWriter(Servers server, QueryType queryType, String tableName, int buffSize = 100)
{
m_queryType = queryType;
m_buffSize = buffSize;
m_server = server;
m_tableName = tableName;
}
示例10: QuerySwitchLine
public DataTable QuerySwitchLine(QueryType QT, ArrayList ParameterList)
{
DBO.VDS_ITM_PERIOD_MAIN_DBO STDM = new VDS_ITM_PERIOD_MAIN_DBO(ref USEDB);
DataTable Dt;
try
{
switch (QT)
{
case QueryType.ITEM_PERIOD:
Dt = STDM.doQueryByFind(ParameterList);
break;
default:
Dt = new DataTable();
break;
}
return Dt;
}
catch (Exception ex)
{
throw ex;
}
}
示例11: QuerySwitch
public DataTable QuerySwitch(QueryType QT, ArrayList ParameterList)
{
DBO.STD_IMPORT_DBO STDM = new STD_IMPORT_DBO(ref USEDB);
DataTable Dt;
try
{
switch (QT)
{
case QueryType.CHAN_NO:
Dt = STDM.doQueryByChanNo(ParameterList);
break;
default:
Dt = new DataTable();
break;
}
return Dt;
}
catch (Exception ex)
{
throw ex;
}
}
示例12: StQuerySwitch
public string StQuerySwitch(QueryType QT, ArrayList ParameterList, out string errMsg)
{
CGD.VDS_CGD23_DBO CGDM = new VDS_CGD23_DBO(ref USEDB);
string str;
string ErrMsg = "";
try
{
switch (QT)
{
case QueryType.GetMaxPickBatch:
str = CGDM.GetMaxPickBatch(ParameterList, out ErrMsg);
errMsg = ErrMsg;
break;
case QueryType.GetCheckBatch:
str = CGDM.GetCheckBatch(ParameterList, out ErrMsg);
errMsg = ErrMsg;
break;
default:
str = "";
errMsg = "";
break;
}
return str;
}
catch (Exception ex)
{
throw ex;
}
}
示例13: QuerySwitch
public DataTable QuerySwitch(QueryType QT, ArrayList ParameterList)
{
CGD.VDS_CGD41_DBO CGDM = new VDS_CGD41_DBO(ref USEDB);
DataTable Dt;
try
{
switch (QT)
{
case QueryType.GetPickBatch:
Dt = CGDM.GetPickBatch(ParameterList);
break;
case QueryType.Label:
Dt = CGDM.ExpLabelData(ParameterList);
break;
default:
Dt = new DataTable();
break;
}
return Dt;
}
catch (Exception ex)
{
throw ex;
}
}
示例14: QuerySwitch
public DataTable QuerySwitch(QueryType QT, ArrayList ParameterList)
{
#region
VDS_ALO_DISRECORD_TMP_DBO ALOM = new VDS_ALO_DISRECORD_TMP_DBO(ref USEDB);
DataTable Dt;
try
{
switch (QT)
{
case QueryType.GetDISRECORD_TmpSchema:
Dt = ALOM.GetDISRECORD_TmpSchema(ParameterList);
break;
default:
Dt = new DataTable();
break;
}
return Dt;
}
catch (Exception ex)
{
throw GetNewException(ex);
}
#endregion
}
示例15: BuildDataQuery
/// <summary>
/// Build data query from the specified <paramref name="queryType"/>
/// </summary>
/// <param name="queryType">
/// The query type.
/// </param>
/// <param name="structureRetrievalManager">
/// The structure retrieval manager.
/// </param>
/// <returns>
/// The data query from the specified <paramref name="queryType"/>
/// </returns>
public IList<IDataQuery> BuildDataQuery(
QueryType queryType, ISdmxObjectRetrievalManager structureRetrievalManager)
{
IList<IDataQuery> returnList = new List<IDataQuery>();
foreach (DataWhereType dataWhere in queryType.DataWhere)
{
// TODO java 0.9.9 no support for default limit. Opened : http://www.metadatatechnology.com/mantis/view.php?id=1427
DataQueryProcessor dataQueryProcessor = null;
if (queryType.defaultLimit.HasValue && queryType.defaultLimit.Value < int.MaxValue)
{
int limit = decimal.ToInt32(queryType.defaultLimit.Value);
dataQueryProcessor = new DataQueryProcessor(limit);
}
else
{
dataQueryProcessor = new DataQueryProcessor();
}
returnList.Add(dataQueryProcessor.BuildDataQuery(dataWhere, structureRetrievalManager));
}
return returnList;
}