⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 contentsmake.cs

📁 企业内部的短信交流管理平台。 设计详细
💻 CS
字号:
using System;
using System.Data;
using System.Data.SqlClient;

namespace Com.SMS.Dal
{
	/// <summary>
	/// ContentsMake 的摘要说明。
	/// </summary>
	public class ContentsMake
	{
		/// <summary>
		/// 添加消息内容
		/// </summary>
		/// <param name="ct"></param>
		/// <returns></returns>
		public bool Insert(Entity.Content ct)
		{
			int i=SqlBasic.ExecuteNonQuery(SqlBasic.CONN_STRING,CommandType.Text,SqlCollections.SQL_CONTENTS_INSERT,new SqlParameter("@Content",ct.MessageContent));

			if(i==1)
			{
				return true;
			}
			else
				return false;
		}

		/// <summary>
		/// 删除消息内容
		/// </summary>
		/// <param name="conId"></param>
		/// <returns></returns>
		public bool Delete(int conId)
		{
			int i=SqlBasic.ExecuteNonQuery(SqlBasic.CONN_STRING,CommandType.Text,SqlCollections.SQL_CONTENTS_DELETE,new SqlParameter("@conId",conId));

			if(i==1)
			{
				return true;
			}
			else
				return false;
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -