本文整理汇总了C#中ParameterCollection.AddCondition方法的典型用法代码示例。如果您正苦于以下问题:C# ParameterCollection.AddCondition方法的具体用法?C# ParameterCollection.AddCondition怎么用?C# ParameterCollection.AddCondition使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ParameterCollection
的用法示例。
在下文中一共展示了ParameterCollection.AddCondition方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetConditionsByObject
///<summary>
///Get conditions by object with Multi-TokenType.
///</summary>
public static ParameterCollection GetConditionsByObject(DO_DecorationCat.UO_DecorationCat parameterObj, bool isAnd, TokenTypes tokenTypes, Dictionary<DO_DecorationCat.Columns, TokenTypes> extTokens)
{
ParameterCollection objectConditions = new ParameterCollection();
TokenTypes tt = tokenTypes;
ParameterType pt = isAnd ? ParameterType.And : ParameterType.Or;
if (!string.IsNullOrEmpty(parameterObj.DecorationCatName))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_DecorationCat.Columns.DecorationCatName, extTokens), DO_DecorationCat.Columns.DecorationCatName, parameterObj.DecorationCatName);
}
if (!string.IsNullOrEmpty(parameterObj.DecorationCatCode))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_DecorationCat.Columns.DecorationCatCode, extTokens), DO_DecorationCat.Columns.DecorationCatCode, parameterObj.DecorationCatCode);
}
if (parameterObj.DecorationCatType != 0 || (extTokens != null && extTokens.ContainsKey(DO_DecorationCat.Columns.DecorationCatType)))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_DecorationCat.Columns.DecorationCatType, extTokens), DO_DecorationCat.Columns.DecorationCatType, parameterObj.DecorationCatType);
}
return objectConditions;
}
示例2: GetConditionsByObject
///<summary>
///Get conditions by object with Multi-TokenType.
///</summary>
public static ParameterCollection GetConditionsByObject(DO_Title.UO_Title parameterObj, bool isAnd, TokenTypes tokenTypes, Dictionary<DO_Title.Columns, TokenTypes> extTokens)
{
ParameterCollection objectConditions = new ParameterCollection();
TokenTypes tt = tokenTypes;
ParameterType pt = isAnd ? ParameterType.And : ParameterType.Or;
if (!string.IsNullOrEmpty(parameterObj.BigDateCode))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Title.Columns.BigDateCode, extTokens), DO_Title.Columns.BigDateCode, parameterObj.BigDateCode);
}
if (!string.IsNullOrEmpty(parameterObj.TitleCode))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Title.Columns.TitleCode, extTokens), DO_Title.Columns.TitleCode, parameterObj.TitleCode);
}
if (!string.IsNullOrEmpty(parameterObj.TitleName))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Title.Columns.TitleName, extTokens), DO_Title.Columns.TitleName, parameterObj.TitleName);
}
if (parameterObj.CreateOn != DateTime.MinValue)
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Title.Columns.CreateOn, extTokens), DO_Title.Columns.CreateOn, parameterObj.CreateOn);
}
if (!string.IsNullOrEmpty(parameterObj.CreateBy))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Title.Columns.CreateBy, extTokens), DO_Title.Columns.CreateBy, parameterObj.CreateBy);
}
if (parameterObj.UpdateOn != DateTime.MinValue)
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Title.Columns.UpdateOn, extTokens), DO_Title.Columns.UpdateOn, parameterObj.UpdateOn);
}
if (!string.IsNullOrEmpty(parameterObj.UpdateBy))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Title.Columns.UpdateBy, extTokens), DO_Title.Columns.UpdateBy, parameterObj.UpdateBy);
}
return objectConditions;
}
示例3: GetConditionsByObject
///<summary>
///Get conditions by object with Multi-TokenType.
///</summary>
public static ParameterCollection GetConditionsByObject(DO_BigDateJoin.UO_BigDateJoin parameterObj, bool isAnd, TokenTypes tokenTypes, Dictionary<DO_BigDateJoin.Columns, TokenTypes> extTokens)
{
ParameterCollection objectConditions = new ParameterCollection();
TokenTypes tt = tokenTypes;
ParameterType pt = isAnd ? ParameterType.And : ParameterType.Or;
if (!string.IsNullOrEmpty(parameterObj.Email))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_BigDateJoin.Columns.Email, extTokens), DO_BigDateJoin.Columns.Email, parameterObj.Email);
}
if (!string.IsNullOrEmpty(parameterObj.BigDateCode))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_BigDateJoin.Columns.BigDateCode, extTokens), DO_BigDateJoin.Columns.BigDateCode, parameterObj.BigDateCode);
}
if (!string.IsNullOrEmpty(parameterObj.BigDateName))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_BigDateJoin.Columns.BigDateName, extTokens), DO_BigDateJoin.Columns.BigDateName, parameterObj.BigDateName);
}
if (parameterObj.BigDate != DateTime.MinValue)
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_BigDateJoin.Columns.BigDate, extTokens), DO_BigDateJoin.Columns.BigDate, parameterObj.BigDate);
}
return objectConditions;
}
示例4: GetConditionsByObject
///<summary>
///Get conditions by object with Multi-TokenType.
///</summary>
public static ParameterCollection GetConditionsByObject(DO_Login.UO_Login parameterObj, bool isAnd, TokenTypes tokenTypes, Dictionary<DO_Login.Columns, TokenTypes> extTokens)
{
ParameterCollection objectConditions = new ParameterCollection();
TokenTypes tt = tokenTypes;
ParameterType pt = isAnd ? ParameterType.And : ParameterType.Or;
if (!string.IsNullOrEmpty(parameterObj.LoginEmail))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Login.Columns.LoginEmail, extTokens), DO_Login.Columns.LoginEmail, parameterObj.LoginEmail);
}
if (parameterObj.LoginType != 0 || (extTokens != null && extTokens.ContainsKey(DO_Login.Columns.LoginType)))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Login.Columns.LoginType, extTokens), DO_Login.Columns.LoginType, parameterObj.LoginType);
}
if (!string.IsNullOrEmpty(parameterObj.LoginPassword))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Login.Columns.LoginPassword, extTokens), DO_Login.Columns.LoginPassword, parameterObj.LoginPassword);
}
if (!string.IsNullOrEmpty(parameterObj.LoginFirstname))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Login.Columns.LoginFirstname, extTokens), DO_Login.Columns.LoginFirstname, parameterObj.LoginFirstname);
}
if (!string.IsNullOrEmpty(parameterObj.LoginLastname))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Login.Columns.LoginLastname, extTokens), DO_Login.Columns.LoginLastname, parameterObj.LoginLastname);
}
if (!string.IsNullOrEmpty(parameterObj.CroomName))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Login.Columns.CroomName, extTokens), DO_Login.Columns.CroomName, parameterObj.CroomName);
}
if (!string.IsNullOrEmpty(parameterObj.BrideName))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Login.Columns.BrideName, extTokens), DO_Login.Columns.BrideName, parameterObj.BrideName);
}
if (parameterObj.CreateOn != DateTime.MinValue)
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Login.Columns.CreateOn, extTokens), DO_Login.Columns.CreateOn, parameterObj.CreateOn);
}
if (!string.IsNullOrEmpty(parameterObj.CreateBy))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Login.Columns.CreateBy, extTokens), DO_Login.Columns.CreateBy, parameterObj.CreateBy);
}
if (parameterObj.UpdateOn != DateTime.MinValue)
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Login.Columns.UpdateOn, extTokens), DO_Login.Columns.UpdateOn, parameterObj.UpdateOn);
}
if (!string.IsNullOrEmpty(parameterObj.UpdateBy))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Login.Columns.UpdateBy, extTokens), DO_Login.Columns.UpdateBy, parameterObj.UpdateBy);
}
return objectConditions;
}
示例5: GetConditionsByObject
///<summary>
///Get conditions by object with Multi-TokenType.
///</summary>
public static ParameterCollection GetConditionsByObject(DO_Decoration.UO_Decoration parameterObj, bool isAnd, TokenTypes tokenTypes, Dictionary<DO_Decoration.Columns, TokenTypes> extTokens)
{
ParameterCollection objectConditions = new ParameterCollection();
TokenTypes tt = tokenTypes;
ParameterType pt = isAnd ? ParameterType.And : ParameterType.Or;
if (!string.IsNullOrEmpty(parameterObj.DecorationCode))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Decoration.Columns.DecorationCode, extTokens), DO_Decoration.Columns.DecorationCode, parameterObj.DecorationCode);
}
if (!string.IsNullOrEmpty(parameterObj.BigDateCode))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Decoration.Columns.BigDateCode, extTokens), DO_Decoration.Columns.BigDateCode, parameterObj.BigDateCode);
}
if (!string.IsNullOrEmpty(parameterObj.DecorationCatCode))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Decoration.Columns.DecorationCatCode, extTokens), DO_Decoration.Columns.DecorationCatCode, parameterObj.DecorationCatCode);
}
if (!string.IsNullOrEmpty(parameterObj.DecorationName))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Decoration.Columns.DecorationName, extTokens), DO_Decoration.Columns.DecorationName, parameterObj.DecorationName);
}
if (parameterObj.DecorationNum != 0 || (extTokens != null && extTokens.ContainsKey(DO_Decoration.Columns.DecorationNum)))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Decoration.Columns.DecorationNum, extTokens), DO_Decoration.Columns.DecorationNum, parameterObj.DecorationNum);
}
if (parameterObj.DecorationLeft != 0 || (extTokens != null && extTokens.ContainsKey(DO_Decoration.Columns.DecorationLeft)))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Decoration.Columns.DecorationLeft, extTokens), DO_Decoration.Columns.DecorationLeft, parameterObj.DecorationLeft);
}
if (parameterObj.DecorationTop != 0 || (extTokens != null && extTokens.ContainsKey(DO_Decoration.Columns.DecorationTop)))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Decoration.Columns.DecorationTop, extTokens), DO_Decoration.Columns.DecorationTop, parameterObj.DecorationTop);
}
if (parameterObj.CreateOn != DateTime.MinValue)
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Decoration.Columns.CreateOn, extTokens), DO_Decoration.Columns.CreateOn, parameterObj.CreateOn);
}
if (!string.IsNullOrEmpty(parameterObj.CreateBy))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Decoration.Columns.CreateBy, extTokens), DO_Decoration.Columns.CreateBy, parameterObj.CreateBy);
}
if (parameterObj.UpdateOn != DateTime.MinValue)
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Decoration.Columns.UpdateOn, extTokens), DO_Decoration.Columns.UpdateOn, parameterObj.UpdateOn);
}
if (!string.IsNullOrEmpty(parameterObj.UpdateBy))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Decoration.Columns.UpdateBy, extTokens), DO_Decoration.Columns.UpdateBy, parameterObj.UpdateBy);
}
return objectConditions;
}
示例6: GetConditionsByObject
///<summary>
///Get conditions by object with Multi-TokenType.
///</summary>
public static ParameterCollection GetConditionsByObject(DO_MsgLog.UO_MsgLog parameterObj, bool isAnd, TokenTypes tokenTypes, Dictionary<DO_MsgLog.Columns, TokenTypes> extTokens)
{
ParameterCollection objectConditions = new ParameterCollection();
TokenTypes tt = tokenTypes;
ParameterType pt = isAnd ? ParameterType.And : ParameterType.Or;
if (!string.IsNullOrEmpty(parameterObj.MsgCode))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_MsgLog.Columns.MsgCode, extTokens), DO_MsgLog.Columns.MsgCode, parameterObj.MsgCode);
}
if (!string.IsNullOrEmpty(parameterObj.BigDateCode))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_MsgLog.Columns.BigDateCode, extTokens), DO_MsgLog.Columns.BigDateCode, parameterObj.BigDateCode);
}
if (!string.IsNullOrEmpty(parameterObj.MsgTemplateCode))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_MsgLog.Columns.MsgTemplateCode, extTokens), DO_MsgLog.Columns.MsgTemplateCode, parameterObj.MsgTemplateCode);
}
if (!string.IsNullOrEmpty(parameterObj.ReplyMsgCode))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_MsgLog.Columns.ReplyMsgCode, extTokens), DO_MsgLog.Columns.ReplyMsgCode, parameterObj.ReplyMsgCode);
}
if (!string.IsNullOrEmpty(parameterObj.GuesetCode))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_MsgLog.Columns.GuesetCode, extTokens), DO_MsgLog.Columns.GuesetCode, parameterObj.GuesetCode);
}
if (!string.IsNullOrEmpty(parameterObj.MsgSubject))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_MsgLog.Columns.MsgSubject, extTokens), DO_MsgLog.Columns.MsgSubject, parameterObj.MsgSubject);
}
if (!string.IsNullOrEmpty(parameterObj.MsgContent))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_MsgLog.Columns.MsgContent, extTokens), DO_MsgLog.Columns.MsgContent, parameterObj.MsgContent);
}
if (parameterObj.CreateOn != DateTime.MinValue)
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_MsgLog.Columns.CreateOn, extTokens), DO_MsgLog.Columns.CreateOn, parameterObj.CreateOn);
}
if (!string.IsNullOrEmpty(parameterObj.CreateBy))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_MsgLog.Columns.CreateBy, extTokens), DO_MsgLog.Columns.CreateBy, parameterObj.CreateBy);
}
if (parameterObj.UpdateOn != DateTime.MinValue)
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_MsgLog.Columns.UpdateOn, extTokens), DO_MsgLog.Columns.UpdateOn, parameterObj.UpdateOn);
}
if (!string.IsNullOrEmpty(parameterObj.UpdateBy))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_MsgLog.Columns.UpdateBy, extTokens), DO_MsgLog.Columns.UpdateBy, parameterObj.UpdateBy);
}
return objectConditions;
}
示例7: GetConditionsByPrimaryKey
///<summary>
///Get conditions by primary key.
///</summary>
public static ParameterCollection GetConditionsByPrimaryKey(string BigDateCode, string MsgTemplateCode)
{
ParameterCollection primaryConditions = new ParameterCollection();
primaryConditions.AddCondition(ParameterType.Initial, TokenTypes.Equal, DO_MsgTemplate.Columns.BigDateCode, BigDateCode);
primaryConditions.AddCondition(ParameterType.And, TokenTypes.Equal, DO_MsgTemplate.Columns.MsgTemplateCode, MsgTemplateCode);
return primaryConditions;
}
示例8: GetConditionsByObject
///<summary>
///Get conditions by object with Multi-TokenType.
///</summary>
public static ParameterCollection GetConditionsByObject(DO_Guest.UO_Guest parameterObj, bool isAnd, TokenTypes tokenTypes, Dictionary<DO_Guest.Columns, TokenTypes> extTokens)
{
ParameterCollection objectConditions = new ParameterCollection();
TokenTypes tt = tokenTypes;
ParameterType pt = isAnd ? ParameterType.And : ParameterType.Or;
if (!string.IsNullOrEmpty(parameterObj.BigDateCode))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Guest.Columns.BigDateCode, extTokens), DO_Guest.Columns.BigDateCode, parameterObj.BigDateCode);
}
if (!string.IsNullOrEmpty(parameterObj.GuestCode))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Guest.Columns.GuestCode, extTokens), DO_Guest.Columns.GuestCode, parameterObj.GuestCode);
}
if (!string.IsNullOrEmpty(parameterObj.TitleCode))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Guest.Columns.TitleCode, extTokens), DO_Guest.Columns.TitleCode, parameterObj.TitleCode);
}
if (!string.IsNullOrEmpty(parameterObj.CategoryCode))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Guest.Columns.CategoryCode, extTokens), DO_Guest.Columns.CategoryCode, parameterObj.CategoryCode);
}
if (!string.IsNullOrEmpty(parameterObj.GuestQueryWords))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Guest.Columns.GuestQueryWords, extTokens), DO_Guest.Columns.GuestQueryWords, parameterObj.GuestQueryWords);
}
if (!string.IsNullOrEmpty(parameterObj.GuestName_en_us))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Guest.Columns.GuestName_en_us, extTokens), DO_Guest.Columns.GuestName_en_us, parameterObj.GuestName_en_us);
}
if (!string.IsNullOrEmpty(parameterObj.GuestName_zh_tw))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Guest.Columns.GuestName_zh_tw, extTokens), DO_Guest.Columns.GuestName_zh_tw, parameterObj.GuestName_zh_tw);
}
if (parameterObj.GuestNameFormat != 0 || (extTokens != null && extTokens.ContainsKey(DO_Guest.Columns.GuestNameFormat)))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Guest.Columns.GuestNameFormat, extTokens), DO_Guest.Columns.GuestNameFormat, parameterObj.GuestNameFormat);
}
if (!string.IsNullOrEmpty(parameterObj.GuestMobile))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Guest.Columns.GuestMobile, extTokens), DO_Guest.Columns.GuestMobile, parameterObj.GuestMobile);
}
if (!string.IsNullOrEmpty(parameterObj.GuestEmail))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Guest.Columns.GuestEmail, extTokens), DO_Guest.Columns.GuestEmail, parameterObj.GuestEmail);
}
if (parameterObj.GuestQuantity != 0 || (extTokens != null && extTokens.ContainsKey(DO_Guest.Columns.GuestQuantity)))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Guest.Columns.GuestQuantity, extTokens), DO_Guest.Columns.GuestQuantity, parameterObj.GuestQuantity);
}
if (parameterObj.IsDeleted != 0 || (extTokens != null && extTokens.ContainsKey(DO_Guest.Columns.IsDeleted)))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Guest.Columns.IsDeleted, extTokens), DO_Guest.Columns.IsDeleted, parameterObj.IsDeleted);
}
if (parameterObj.GuestAttended != 0 || (extTokens != null && extTokens.ContainsKey(DO_Guest.Columns.GuestAttended)))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Guest.Columns.GuestAttended, extTokens), DO_Guest.Columns.GuestAttended, parameterObj.GuestAttended);
}
if (parameterObj.CreateOn != DateTime.MinValue)
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Guest.Columns.CreateOn, extTokens), DO_Guest.Columns.CreateOn, parameterObj.CreateOn);
}
if (!string.IsNullOrEmpty(parameterObj.CreateBy))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Guest.Columns.CreateBy, extTokens), DO_Guest.Columns.CreateBy, parameterObj.CreateBy);
}
if (parameterObj.UpdateOn != DateTime.MinValue)
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Guest.Columns.UpdateOn, extTokens), DO_Guest.Columns.UpdateOn, parameterObj.UpdateOn);
}
if (!string.IsNullOrEmpty(parameterObj.UpdateBy))
{
objectConditions.AddCondition(pt, GetColumnTokenType(tt, DO_Guest.Columns.UpdateBy, extTokens), DO_Guest.Columns.UpdateBy, parameterObj.UpdateBy);
}
return objectConditions;
}
示例9: GetConditionsByPrimaryKey
///<summary>
///Get conditions by primary key.
///</summary>
public static ParameterCollection GetConditionsByPrimaryKey(System.String Email)
{
ParameterCollection primaryConditions = new ParameterCollection();
primaryConditions.AddCondition(ParameterType.Initial, TokenTypes.Equal, DO_BigDateJoin.Columns.Email, Email);
return primaryConditions;
}
示例10: GetConditionsByPrimaryKey
///<summary>
///Get conditions by primary key.
///</summary>
public static ParameterCollection GetConditionsByPrimaryKey(System.String BigDateCode, System.String GuestCode)
{
ParameterCollection primaryConditions = new ParameterCollection();
primaryConditions.AddCondition(ParameterType.Initial, TokenTypes.Equal, DO_GuestJoin.Columns.BigDateCode, BigDateCode);
primaryConditions.AddCondition(ParameterType.And, TokenTypes.Equal, DO_GuestJoin.Columns.GuestCode, GuestCode);
return primaryConditions;
}
示例11: GetConditionsByPrimaryKey
///<summary>
///Get conditions by primary key.
///</summary>
public static ParameterCollection GetConditionsByPrimaryKey(string LoginEmail)
{
ParameterCollection primaryConditions = new ParameterCollection();
primaryConditions.AddCondition(ParameterType.Initial, TokenTypes.Equal, DO_Login.Columns.LoginEmail, LoginEmail);
return primaryConditions;
}
示例12: GetConditionsByPrimaryKey
///<summary>
///Get conditions by primary key.
///</summary>
public static ParameterCollection GetConditionsByPrimaryKey(string DecorationCode)
{
ParameterCollection primaryConditions = new ParameterCollection();
primaryConditions.AddCondition(ParameterType.Initial, TokenTypes.Equal, DO_Decoration.Columns.DecorationCode, DecorationCode);
return primaryConditions;
}
示例13: GetConditionsByPrimaryKey
///<summary>
///Get conditions by primary key.
///</summary>
public static ParameterCollection GetConditionsByPrimaryKey(string BigDateCode, string DecorationCode, string GuestCode)
{
ParameterCollection primaryConditions = new ParameterCollection();
primaryConditions.AddCondition(ParameterType.Initial, TokenTypes.Equal, DO_Chair.Columns.BigDateCode, BigDateCode);
primaryConditions.AddCondition(ParameterType.And, TokenTypes.Equal, DO_Chair.Columns.DecorationCode, DecorationCode);
primaryConditions.AddCondition(ParameterType.And, TokenTypes.Equal, DO_Chair.Columns.GuestCode, GuestCode);
return primaryConditions;
}
示例14: GetConditionsByPrimaryKey
///<summary>
///Get conditions by primary key.
///</summary>
public static ParameterCollection GetConditionsByPrimaryKey(string BigDateCode, string Email)
{
ParameterCollection primaryConditions = new ParameterCollection();
primaryConditions.AddCondition(ParameterType.Initial, TokenTypes.Equal, DO_BigDateDetail.Columns.BigDateCode, BigDateCode);
primaryConditions.AddCondition(ParameterType.And, TokenTypes.Equal, DO_BigDateDetail.Columns.Email, Email);
return primaryConditions;
}