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