public OrganisationAttachmentContainer OrganisationAttachmentByFileType(DBGuid OrganisationID, string KefFileTypeRef)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     OrganisationAttachmentContainer result;
     DataSet entitySet = m_DataContext.ndihdOrganisationAttachmentByFileType(OrganisationID, KefFileTypeRef);
     result = new OrganisationAttachmentContainer(entitySet.Tables[0]);
     TraceCallReturnEvent.Raise();
     return result;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }
 public virtual OrganisationAttachmentContainer OrganisationAttachmentSelectAll()
 {
     TraceCallEnterEvent.Raise();
       try
       {
     OrganisationAttachmentContainer result;
     DataSet entitySet = m_DataContext.ndihdOrganisationAttachmentSelectAll();
     result = new OrganisationAttachmentContainer(entitySet.Tables[0]);
     TraceCallReturnEvent.Raise();
     return result;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }
 public virtual OrganisationAttachmentContainer SelectChildrenByKefFileTypeOfOrgAttachment(DBString IDVal)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     OrganisationAttachmentContainer result;
     DataSet entitySet = m_DataContext.ndihdKefFileTypeOfOrgAttachmentSelectBy(IDVal);
     result = new OrganisationAttachmentContainer(entitySet.Tables[0]);
     TraceCallReturnEvent.Raise();
     return result;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }
 public OrganisationAttachmentContainer OrganisationAttachmentSelectFiltered(DBGuid OrganisationID, bool bIsStrategy,
                                                                         bool bIsOtherDocument,
                                                                         bool bIsOrgAttachment)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     OrganisationAttachmentContainer result;
     DataSet entitySet =
       m_DataContext.ndihdOrganisationAttachmentSelectFiltered(OrganisationID, bIsStrategy, bIsOtherDocument,
                                                           bIsOrgAttachment);
     result = new OrganisationAttachmentContainer(entitySet.Tables[0]);
     TraceCallReturnEvent.Raise();
     return result;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }