/// <summary> /// Builds an query that can be used with SQL /// </summary> public string BuildQuery(IWmiQuery queryExpression) { string query = String.Format("SELECT * FROM {0}", WmiMapper.ConvertTableName(queryExpression.Type)); if (queryExpression.WhereExpression != null) { query = String.Format("{0} WHERE {1}", query, BuildWhereClause(queryExpression.WhereExpression)); } return(query); }
/// <summary> /// Converts an member to an SQL syntax /// </summary> public static string ConvertMemberToSql(MemberInfo memberInfo) { return(WmiMapper.ConvertMemberName(memberInfo)); }