Пример #1
0
 /// <summary>
 /// 转译为对应数据库的字符串
 /// </summary>
 /// <param name="fieldAlias"></param>
 /// <returns></returns>
 public static string ToSQLString(this ComponentValueOfSelect fieldAlias)
 {
     if (string.IsNullOrEmpty(fieldAlias.Alias))
     {
         return(fieldAlias.FieldName);
     }
     else
     {
         return(fieldAlias.FieldName + " " + fieldAlias.Alias);
     }
 }
Пример #2
0
 /// <summary>
 /// 新增查询项
 /// </summary>
 /// <param name="select"></param>
 public void Add(ComponentValueOfSelect select)
 {
     Selects.Add(select);
 }