Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
Entity SQL queries can contain comments. Two dashes (--) start a comment line.
Syntax
-- text_of_comment
Arguments
text_of_comment
Is the character string that contains the text of the comment.
Example
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:
Follow the procedure in How to: Execute a Query that Returns StructuralType Results.
Pass the following query as an argument to the
ExecuteStructuralTypeQuerymethod:
SELECT VALUE product FROM AdventureWorksEntities.Products AS product -- add a comment here