-- (Comment) (Entity SQL)

 

Entity SQL queries can contain comments. Two dashes (--) start a comment line.

  
-- text_of_comment  

text_of_comment
Is the character string that contains the text of the comment.

The following Entity SQL query demonstrates how to use comments. The query is based on the AdventureWorks Sales Model. To compile and run this query, follow these steps:

  1. Follow the procedure in How to: Execute a Query that Returns StructuralType Results.

  2. Pass the following query as an argument to the ExecuteStructuralTypeQuery method:

[!CODE [DP EntityServices Concepts 2#COMMENT](../CodeSnippet/VS_Snippets_Data/dp entityservices concepts 2#comment)]

Entity SQL Overview
Entity SQL Reference

Show: