BLL/Product.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Data;
using RM.Entity;
namespace RM.BLL
{
    /// <summary>
    /// 业务类Product
    /// </summary>
    public class Product
    {
        #region 创建数据访问对象.
        private readonly RM.DAL.Product MyDAL = new RM.DAL.Product();
        #endregion

        #region 构造函数
        public Product()
        {
        }
        #endregion

        #region 成员方法

        /// <summary>
        /// 将数据实体写入数据库.
        /// </summary>
        public bool Add(RM.Entity.Product MyEntity)
        {
            return MyDAL.Add(MyEntity);
        }

        /// <summary>
        /// 将数据更新到数据库.
        /// </summary>
        public bool Update(RM.Entity.Product MyEntity)
        {
            return MyDAL.Update(MyEntity);
        }

        /// <summary>
        /// 将数据从数据库删除.
        /// </summary>
        public bool Delete(int ID)
        {
            return MyDAL.Delete(ID);
        }

        public int Delete(string ID)
        {
            return MyDAL.Delete(ID);
        }

        /// <summary>
        /// 获取一个数据实体.
        /// </summary>
        public RM.Entity.Product GetEntity(int ID)
        {
            return MyDAL.GetEntity(ID);
        }
        public RM.Entity.Product GetEntity(string condition)
        {
后面还有 33 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。