internal static List<XSLTemplate> GetXSLTemplates()
{
List<XSLTemplate> colXSLTemplates = null;
XSLTemplate xslTemplate = null;
using (SqlConnection sqlConnection = new SqlConnection(CMSCoreBase.CMSCoreConnectionString))
{
SqlCommand sqlCommand = new SqlCommand(SN_XSLTEMPLATE_GET_ALL, sqlConnection);
sqlCommand.CommandType = System.Data.CommandType.StoredProcedure;
sqlCommand.Connection.Open();
using (SqlDataReader sqlDataReader = sqlCommand.ExecuteReader(System.Data.CommandBehavior.CloseConnection))
{
colXSLTemplates = new List<XSLTemplate>();
while (sqlDataReader.Read())
{
xslTemplate = GetXSLTemplate(colXSLTemplates, sqlDataReader);
FillFromReader(xslTemplate, sqlDataReader);
}
sqlDataReader.Close();
sqlCommand.Connection.Close();
}
}
return colXSLTemplates;
}