clsJournaleintrag.SelectAll Method clsJournaleintrag.SelectAll Method EDKB12WS.edokadb.clsJournaleintrag.SelectAll Method SelectAll Method topic_0000000000000219 EDKB12WS.edokadb.clsJournaleintrag.SelectAll EDKB12WS.edokadb.clsJournaleintrag.SelectAll clsJournaleintrag.SelectAll EDKB12WS.edokadb.clsJournaleintrag.clsJournaleintrag.SelectAll EDKB12WS.edokadb.clsJournaleintrag.SelectAll EDKB12WS (in EDKB12WS.exe) clsJournaleintrag.SelectAll Method EDKB12WS.edokadb.clsJournaleintrag topic_0000000000000219
clsJournaleintrag.SelectAll Method
Namespace: EDKB12WS.edokadb
Assembly: EDKB12WS (in EDKB12WS.exe)
Visual Basic
Public Overrides Function SelectAll() As ]]>DataTablea]]>]]>
C#
public override ]]>DataTablea]]>]]> SelectAll()
C++
public:
]]>DataTablea]]>]]>^ SelectAll()
JScript
public function SelectAll() : ]]>DataTablea]]>]]>;
$END-IFNOTEMPTY$
Visual Basic Copy CodeCopy Code ]]>
   Overrides Public Function SelectAll() As DataTable
     Dim scmCmdToExecute As SqlCommand = New SqlCommand()
     scmCmdToExecute.CommandText = "dbo.[pr_Journaleintrag_SelectAll]"
     scmCmdToExecute.CommandType = CommandType.StoredProcedure
     Dim dtToReturn As DataTable = new DataTable("Journaleintrag")
     Dim sdaAdapter As SqlDataAdapter = new SqlDataAdapter(scmCmdToExecute)

     ' // Use base class' connection object
     scmCmdToExecute.Connection = m_scoMainConnection

     Try
       scmCmdToExecute.Parameters.Add(new SqlParameter("@iErrorCode", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_iErrorCode))

       If m_bMainConnectionIsCreatedLocal Then
         ' // Open connection.
         m_scoMainConnection.Open()
       Else
         If m_cpMainConnectionProvider.bIsTransactionPending Then
           scmCmdToExecute.Transaction = m_cpMainConnectionProvider.stCurrentTransaction
         End If
       End If

       ' // Execute query.
       sdaAdapter.Fill(dtToReturn)
               m_iErrorCode = scmCmdToExecute.Parameters.Item("@iErrorCode").Value

       If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
         ' // Throw error.
         Throw New Exception("Stored Procedure 'pr_Journaleintrag_SelectAll' reported the ErrorCode: " & m_iErrorCode.ToString())
       End If

       Return dtToReturn
     Catch ex As Exception
       ' // some error occured. Bubble it to caller and encapsulate Exception object
       Throw New Exception("clsJournaleintrag::SelectAll::Error occured.", ex)
     Finally
       If m_bMainConnectionIsCreatedLocal Then
         ' // Close connection.
         m_scoMainConnection.Close()
       End If
       scmCmdToExecute.Dispose()
       sdaAdapter.Dispose()
     End Try
   End Function
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2 The .NET Framework does not support all versions of every platform. For a list of the supported versions, see ]]>System Requirementsa]]>]]>.
.NET Framework Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0
.NET Compact Framework Supported in: 3.5, 2.0, 1.0
XNA Framework Supported in: 3.0, 2.0, 1.0
Reference clsJournaleintrag ClassclsJournaleintrag Class
clsJournaleintrag clsJournaleintrag MembersclsJournaleintrag clsJournaleintrag Members
EDKB12WS.edokadb NamespaceEDKB12WS.edokadb Namespace