public Core.Business.SubCenterPluginList Select(Guid id)
        {
            SqlServerUtility sql = new SqlServerUtility();

            sql.AddParameter("@Id", SqlDbType.UniqueIdentifier, id);
            SqlDataReader reader = sql.ExecuteSPReader("usp_SelectSubCenterPluginList");

            if (reader != null && !reader.IsClosed && reader.Read())
            {
                Core.Business.SubCenterPluginList subCenterPluginList = new Core.Business.SubCenterPluginList();

                if (!reader.IsDBNull(0)) subCenterPluginList.Id = reader.GetGuid(0);
                if (!reader.IsDBNull(1)) subCenterPluginList.Name = reader.GetString(1);
                if (!reader.IsDBNull(2)) subCenterPluginList.URI = reader.GetString(2);

                reader.Close();
                return subCenterPluginList;
            }
            else
            {
                if (reader != null && !reader.IsClosed)
                    reader.Close();

                return null;
            }
        }
        public IList<Core.Business.SubCenterPluginList> GetAllSubCenterPluginList()
        {
            IList<Core.Business.SubCenterPluginList> subCenterPluginListlist = new List<Core.Business.SubCenterPluginList>();
            SqlServerUtility sql = new SqlServerUtility();

            SqlDataReader reader = sql.ExecuteSPReader("usp_SelectSubCenterPluginListsAll");

            if(reader != null)
            {
                while(reader.Read())
                {
                    Core.Business.SubCenterPluginList subCenterPluginList = new Core.Business.SubCenterPluginList();

                    if (!reader.IsDBNull(0)) subCenterPluginList.Id = reader.GetGuid(0);
                    if (!reader.IsDBNull(1)) subCenterPluginList.Name = reader.GetString(1);
                    if (!reader.IsDBNull(2)) subCenterPluginList.URI = reader.GetString(2);

                    subCenterPluginList.MarkOld();
                    subCenterPluginListlist.Add(subCenterPluginList);
                }
                reader.Close();
            }
            return subCenterPluginListlist;
        }