public bool Del(MovieClassify movieClassify) { using (Conn) { string deletestr = "DELETE FROM MovieClassify WHERE ID = @ID"; return(Conn.Execute(deletestr, movieClassify) > 0 ? true : false); } }
public int Add(MovieClassify movieClassify) { using (Conn) { string query = "INSERT INTO MovieClassify(MovClassify,ClassifyInfo)VALUES(@MovClassify,@ClassifyInfo)"; return(Conn.Execute(query, movieClassify)); } }
public MovieClassify Get(MovieClassify movieClassify) { return(_movieClassifyDao.Get(movieClassify)); }
public bool Del(MovieClassify movieClassify) { return(_movieClassifyDao.Del(movieClassify)); }
public int Add(MovieClassify movieClassify) { return(_movieClassifyDao.Add(movieClassify)); }
public bool Update(MovieClassify movieClassify) { throw new NotImplementedException(); }
public MovieClassify Get(MovieClassify movieClassify) { return(this.Get(movieClassify.ID)); }