示例#1
0
/// <summary>
/// 向数据库中添加一条记录
/// </summary>
/// <param name="model">要添加的实体</param>
/// <returns>是否成功</returns>
        public bool Insert(Activity model)
        {
            return(_dao.Insert(model));
        }
示例#2
0
        public int AddActivity()
        {
            ActivityDAO dao = new ActivityDAO();

            return(dao.Insert(this));
        }