예제 #1
0
        public static Guid GetIDByVirtualUrl(string virtualUrl)
        {
            Guid        communityID = Guid.Empty;
            IDataReader idr         = null;

            try
            {
                idr = HitblCommunityCty.FetchByParameter(HitblCommunityCty.Columns.CtyVirtualUrl, SubSonic.Comparison.Like, virtualUrl);
                if (idr.Read())
                {
                    communityID = new Guid(idr[HitblCommunityCty.Columns.CtyId].ToString());
                }
            }
            finally
            {
                if (idr != null && !idr.IsClosed)
                {
                    idr.Close();
                }
            }
            return(communityID);
        }
예제 #2
0
        private void LoadProperties(string communityName)
        {
            string      strStyleInfo = string.Empty;
            IDataReader idr          = null;

            try
            {
                if (!string.IsNullOrEmpty(communityName))
                {
                    idr = HitblCommunityCty.FetchByParameter(HitblCommunityCty.Columns.CtyVirtualUrl, SubSonic.Comparison.Equals, communityName);
                    FillProperties(idr);
                }
            }
            catch
            {
            }
            finally
            {
                if (idr != null && !idr.IsClosed)
                {
                    idr.Close();
                }
            }
        }
예제 #3
0
        private void LoadProperties(Guid communityId)
        {
            string      strStyleInfo = string.Empty;
            IDataReader idr          = null;

            try
            {
                if (!communityId.Equals(Guid.Empty))
                {
                    idr = HitblCommunityCty.FetchByParameter(HitblCommunityCty.Columns.CtyId, SubSonic.Comparison.Equals, communityId);
                    FillProperties(idr);
                }
            }
            catch
            {
            }
            finally
            {
                if (idr != null && !idr.IsClosed)
                {
                    idr.Close();
                }
            }
        }