Class SqlStatementPart
Represents a typed part of a SQL statement built from a parsed segment.
public abstract class SqlStatementPart
- Inheritance
-
SqlStatementPart
- Derived
- Inherited Members
- Extension Methods
Constructors
SqlStatementPart(string, SqlSegment)
Initializes a new instance of the SqlStatementPart class.
protected SqlStatementPart(string name, SqlSegment segment)
Parameters
namestringName of the part for identification.
segmentSqlSegmentThe underlying segment represented by the part.
Exceptions
- ArgumentNullException
Thrown when
nameorsegmentis null.
Properties
Name
Gets the display name of the part.
public string Name { get; }
Property Value
Segment
Gets the SqlSegment that stores the parsed tokens.
public SqlSegment Segment { get; }
Property Value
Methods
ToSql()
Builds the SQL text represented by the part.
public string ToSql()
Returns
- string
The SQL string rendered from the underlying segment.