public List <T> GetDataList <T>(SqlCommand command) { try { using (SqlConnection connection = new SqlConnection(Connection_String)) { if (connection.State == ConnectionState.Closed) { connection.Open(); } command.Connection = connection; command.CommandTimeout = Connection_Timeout; return(DataModelHelper.CreateList <T>(command.ExecuteReader())); } } catch (Exception ex) { throw; } }