Example #1
0
        private SqlStringPathExpression(SqlPathExpression parentPath, SqlStringLiteral value)
            : base(SqlObjectKind.StringPathExpression, parentPath)
        {
            if (value == null)
            {
                throw new ArgumentNullException("value");
            }

            this.Value = value;
        }
Example #2
0
        public static SqlStringLiteral Create(string value)
        {
            SqlStringLiteral sqlStringLiteral;

            if (!SqlStringLiteral.FrequentlyUsedStrings.TryGetValue(value, out sqlStringLiteral))
            {
                sqlStringLiteral = new SqlStringLiteral(value);
            }

            return(sqlStringLiteral);
        }
Example #3
0
 public static SqlStringPathExpression Create(SqlPathExpression parentPath, SqlStringLiteral value)
 {
     return(new SqlStringPathExpression(parentPath, value));
 }