% group # SQL text generation control attributes %>
The TableName attribute specifies a name of the table represented by the decorated object.
TableName.cs <% ..\..\..\HowTo\DataAccess\TableName.cs %> DataAccessor.SelectByKeySql and DataAccessor.SelectByKey methods generate and execute the following SQL statement: <% sql # -- SelectByKeySql SELECT [MiddleName], [PersonID], [LastName], [FirstName] FROM [Person] WHERE [PersonID] = @PersonID -- SelectByKey exec Person_SelectByKey @id=1 %> App.config <% Doc\Data\App.config %> Create.sql script