Enum ForXmlMode
How SQL Server shapes the result set when it is rendered as XML.
public enum ForXmlMode
- Extension Methods
Fields
Auto = 1FOR XML AUTO: the table structure drives the element nesting.Explicit = 2FOR XML EXPLICIT: the query must project a tag/parent hierarchy.Path = 3FOR XML PATH: the projection aliases drive the structure.Raw = 0FOR XML RAW: each row becomes a<row>element with the columns as attributes.