clsVorlagenfeld.SelectAll Method clsVorlagenfeld.SelectAll Method EDKB12WS.edokadb.clsVorlagenfeld.SelectAll Method SelectAll Method topic_0000000000000367 EDKB12WS.edokadb.clsVorlagenfeld.SelectAll EDKB12WS.edokadb.clsVorlagenfeld.SelectAll clsVorlagenfeld.SelectAll EDKB12WS.edokadb.clsVorlagenfeld.clsVorlagenfeld.SelectAll EDKB12WS.edokadb.clsVorlagenfeld.SelectAll EDKB12WS (in EDKB12WS.exe) clsVorlagenfeld.SelectAll Method EDKB12WS.edokadb.clsVorlagenfeld topic_0000000000000367
clsVorlagenfeld.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 ]]>
Public Overrides Function SelectAll() As DataTable
   Dim scmCmdToExecute As SqlCommand = New SqlCommand()
   scmCmdToExecute.CommandText = "dbo.[pr_vorlagenfeld_SelectAll]"
   scmCmdToExecute.CommandType = CommandType.StoredProcedure
   Dim dtToReturn As DataTable = New DataTable("vorlagenfeld")
   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 = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))

       If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
           ' // Throw error.
           Throw New Exception("Stored Procedure 'pr_vorlagenfeld_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("clsVorlagenfeld::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 clsVorlagenfeld ClassclsVorlagenfeld Class
clsVorlagenfeld clsVorlagenfeld MembersclsVorlagenfeld clsVorlagenfeld Members
EDKB12WS.edokadb NamespaceEDKB12WS.edokadb Namespace