zoukankan      html  css  js  c++  java
  • 6 地址管理 B

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    namespace LC.BLL
    {
    using Entity;
    using DAL;
    public class AddressesBLL
    {
    AddressesDAL dal = new AddressesDAL();

    /// <summary>
    /// 新增
    /// </summary>
    /// <param name="a"></param>
    /// <returns></returns>
    public int Add(Addresses a)
    {
    var result = dal.Add(a);
    return result;
    }

    /// <summary>
    /// 修改
    /// </summary>
    /// <param name="a"></param>
    /// <returns></returns>
    public int Update(Addresses a)
    {
    var result = dal.Update(a);
    return result;
    }

    /// <summary>
    /// 删除
    /// </summary>
    /// <param name="Id"></param>
    /// <returns></returns>
    public int Delete(int Id)
    {
    var result = dal.Delete(Id);
    return result;
    }

    /// <summary>
    /// 根据Id获取
    /// </summary>
    /// <param name="Id"></param>
    /// <returns></returns>
    public Addresses QueryById(int Id)
    {
    var result = dal.QueryById(Id);
    return result;
    }

    /// <summary>
    /// 获取数据
    /// </summary>
    /// <returns></returns>
    public List<Addresses> Query()
    {
    var result = dal.Query();
    return result;
    }

    /// <summary>
    /// 获取数据
    /// </summary>
    /// <returns></returns>
    public List<Region> GetRegion(int PId)
    {
    var result = dal.GetRegion(PId);
    return result;
    }
    }
    }

  • 相关阅读:
    tomcat自启动的最简单的方法
    Eclipse引入DTD文件
    MyBatis框架之基本知识介绍
    【转】Linux系统安装Redis详细过程
    Spring MVC + Spring + MyBatis 框架整合
    Spring框架之IoC和AOP
    Mysql 时间相关
    【转】Spring事务详解
    Spring的注解问题
    关于Calendar的一些用法总结
  • 原文地址:https://www.cnblogs.com/hianb/p/10145624.html
Copyright © 2011-2022 走看看