CreateSqlCollectionItem(System.Data.SqlClient.SqlDataReader) Method

When overridden in a derived class, the CreateSqlCollectionItem method of the ServiceCollection class populates the properties of a Service instance with the column values of the supplied SqlDataReader.


dataReader A SqlDataReader object whose columns contain the properties of a Service object.

Return Value

A Service object.


The Item property of the ServiceCollection class calls the proc_getServiceById stored procedure to populate a SqlDataReader with the properties of the specified Service object and then calls the CreateSqlCollectionItem method internally to return a Service instance with its properties populated from the columns of the SqlDataReader.


Platforms: Microsoft Windows Server 2003

Security: Code Access Security