/// <summary> /// Delete registers based on class values informed. MinValues and nulls are skipped. /// Must have "MultipleActiveResultSets=True" on connection string. /// </summary> /// <param name="parTagInfo">Item to delete</param> /// <param name="transaction">Transaction context</param> /// <param name="errorMessage">Error message</param> public virtual void Delete(TagInfo parTagInfo, DbTransaction transaction, out string errorMessage) { errorMessage = string.Empty; TagDAO.Delete(parTagInfo, transaction, out errorMessage); //By default, the caller of this method will do the commit. //motor.Commit(); //motor.CloseConnection(); }
/// <summary> /// /// </summary> /// <param name="_tagGuid"></param> public void DeleteTag(Guid _tagGuid) { TagDAO dao = new TagDAO(MongoDB); dao.Delete(_tagGuid); }
/// <summary> /// /// </summary> /// <param name="_tag"></param> public void DeleteTag(Tag _tag) { TagDAO dao = new TagDAO(MongoDB); dao.Delete(_tag); }