"景先生毕设|www.jxszl.com

C# CY类代码示例

2023-12-29 17:48编辑: www.jxszl.com景先生毕设
本文整理汇总了C#中CY类的典型用法代码示例。如果您正苦于以下问题:C#CY类的具体用法?C#CY怎么用?C#CY使用的例子?这里精选的类代码示例或许可以为您提供帮助。 示例1:GetCommentCountByMiniBlogId publicintGetCommentCountByMiniBlogId(CY.UME.Core.Business.MiniBlogminiBlog) { intcount=0; if(miniBlog==null) { returncount; } SqlServerUtilitysql=newSqlServerUtility(connectionString); sql.AddParameter("@MiniBlogId",SqlDbType.BigInt,miniBlog.Id); SqlDataReaderreader=sql.ExecuteSPReader("USP_MiniBlogComment_SelectCount_By_MiniBlogId"); if(reader!=null&&!reader.IsClosed&&reader.Read()) { if(!reader.IsDBNull(0))count=reader.GetInt32(0); reader.Close(); } else { if(reader!=null&&!reader.IsClosed) reader.Close(); } returncount; }
原文链接:http://www.jxszl.com/biancheng/C/556834.html