' /////////////////////////////////////////////////////////////////////////// ' // Description: Data Access class for the table 'Vertragselement' ' // Generated by LLBLGen v1.21.2003.712 Final on: Donnerstag, 26. Februar 2009, 07:36:50 ' // Because the Base Class already implements IDispose, this class doesn't. ' /////////////////////////////////////////////////////////////////////////// Imports System Imports System.Data Imports System.Data.SqlTypes Imports System.Data.SqlClient Namespace TKB.VV.DB ''' ''' Purpose: Data Access class for the table 'Vertragselement'. ''' Public Class clsVertragselement Inherits clsDBInteractionBase #Region " Class Member Declarations " Private m_bAktiv, m_bBefristet_Unbefristet As SqlBoolean Private m_daVertragsbeginn, m_daUnterzeichnet_am, m_daGekuendigt_per, m_daGekuendigt_am, m_daMindestvertragsdauer_bis, m_daVertragsablauf, m_daErstellt_am, m_daMutiert_am, m_daVersionsdatum As SqlDateTime Private m_iVertragselementnr, m_iApplikationNr, m_iMutierer, m_iLizenztypnr, m_iSecurityLevelNr, m_iVertragspartnerNr, m_iVertragspartnerNrOld, m_iParentID, m_iVertragstypNr, m_iVertragstypNrOld As SqlInt32 Private m_sBezeichnung, m_sLizenzdetails, m_sBeschreibung, m_sNummer, m_sVersion, m_sSuchbegriffe As SqlString #End Region ''' ''' Purpose: Class constructor. ''' Public Sub New() ' // Nothing for now. End Sub ''' ''' Purpose: Insert method. This method will insert one new row into the database. ''' ''' True if succeeded, otherwise an Exception is thrown. ''' ''' Properties needed for this method: ''' ''' Properties set after a succesful call of this method: ''' ''' Overrides Public Function Insert() As Boolean Dim scmCmdToExecute As SqlCommand = New SqlCommand() scmCmdToExecute.CommandText = "dbo.[pr_Vertragselement_Insert]" scmCmdToExecute.CommandType = CommandType.StoredProcedure ' // Use base class' connection object scmCmdToExecute.Connection = m_scoMainConnection Try scmCmdToExecute.Parameters.Add(New SqlParameter("@iVertragselementnr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iVertragselementnr)) scmCmdToExecute.Parameters.Add(New SqlParameter("@iVertragstypNr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iVertragstypNr)) scmCmdToExecute.Parameters.Add(New SqlParameter("@iVertragspartnerNr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iVertragspartnerNr)) scmCmdToExecute.Parameters.Add(New SqlParameter("@iParentID", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iParentID)) scmCmdToExecute.Parameters.Add(New SqlParameter("@sBezeichnung", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sBezeichnung)) scmCmdToExecute.Parameters.Add(New SqlParameter("@sBeschreibung", SqlDbType.VarChar, 2048, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sBeschreibung)) scmCmdToExecute.Parameters.Add(New SqlParameter("@sVersion", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sVersion)) scmCmdToExecute.Parameters.Add(New SqlParameter("@daVersionsdatum", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daVersionsdatum)) scmCmdToExecute.Parameters.Add(New SqlParameter("@sNummer", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sNummer)) scmCmdToExecute.Parameters.Add(New SqlParameter("@daUnterzeichnet_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daUnterzeichnet_am)) scmCmdToExecute.Parameters.Add(New SqlParameter("@daVertragsbeginn", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daVertragsbeginn)) scmCmdToExecute.Parameters.Add(New SqlParameter("@daVertragsablauf", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daVertragsablauf)) scmCmdToExecute.Parameters.Add(New SqlParameter("@bBefristet_Unbefristet", SqlDbType.Bit, 1, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_bBefristet_Unbefristet)) scmCmdToExecute.Parameters.Add(New SqlParameter("@daMindestvertragsdauer_bis", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daMindestvertragsdauer_bis)) scmCmdToExecute.Parameters.Add(New SqlParameter("@daGekuendigt_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daGekuendigt_am)) scmCmdToExecute.Parameters.Add(New SqlParameter("@daGekuendigt_per", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daGekuendigt_per)) scmCmdToExecute.Parameters.Add(New SqlParameter("@iSecurityLevelNr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iSecurityLevelNr)) scmCmdToExecute.Parameters.Add(New SqlParameter("@sSuchbegriffe", SqlDbType.VarChar, 1024, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sSuchbegriffe)) scmCmdToExecute.Parameters.Add(New SqlParameter("@iApplikationNr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iApplikationNr)) scmCmdToExecute.Parameters.Add(New SqlParameter("@iLizenztypnr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iLizenztypnr)) scmCmdToExecute.Parameters.Add(New SqlParameter("@sLizenzdetails", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sLizenzdetails)) scmCmdToExecute.Parameters.Add(New SqlParameter("@daErstellt_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daErstellt_am)) scmCmdToExecute.Parameters.Add(New SqlParameter("@daMutiert_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daMutiert_am)) scmCmdToExecute.Parameters.Add(New SqlParameter("@iMutierer", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iMutierer)) scmCmdToExecute.Parameters.Add(New SqlParameter("@bAktiv", SqlDbType.Bit, 1, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_bAktiv)) 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. m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery() 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_Vertragselement_Insert' reported the ErrorCode: " & m_iErrorCode.ToString()) End If Return True Catch ex As Exception ' // some error occured. Bubble it to caller and encapsulate Exception object Throw New Exception("clsVertragselement::Insert::Error occured.", ex) Finally If m_bMainConnectionIsCreatedLocal Then ' // Close connection. m_scoMainConnection.Close() End If scmCmdToExecute.Dispose() End Try End Function ''' ''' Purpose: Update method. This method will Update one existing row in the database. ''' ''' True if succeeded, otherwise an Exception is thrown. ''' ''' Properties needed for this method: ''' ''' Properties set after a succesful call of this method: ''' ''' Overrides Public Function Update() As Boolean Dim scmCmdToExecute As SqlCommand = New SqlCommand() scmCmdToExecute.CommandText = "dbo.[pr_Vertragselement_Update]" scmCmdToExecute.CommandType = CommandType.StoredProcedure ' // Use base class' connection object scmCmdToExecute.Connection = m_scoMainConnection Try scmCmdToExecute.Parameters.Add(New SqlParameter("@iVertragselementnr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iVertragselementnr)) scmCmdToExecute.Parameters.Add(New SqlParameter("@iVertragstypNr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iVertragstypNr)) scmCmdToExecute.Parameters.Add(New SqlParameter("@iVertragspartnerNr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iVertragspartnerNr)) scmCmdToExecute.Parameters.Add(New SqlParameter("@iParentID", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iParentID)) scmCmdToExecute.Parameters.Add(New SqlParameter("@sBezeichnung", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sBezeichnung)) scmCmdToExecute.Parameters.Add(New SqlParameter("@sBeschreibung", SqlDbType.VarChar, 2048, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sBeschreibung)) scmCmdToExecute.Parameters.Add(New SqlParameter("@sVersion", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sVersion)) scmCmdToExecute.Parameters.Add(New SqlParameter("@daVersionsdatum", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daVersionsdatum)) scmCmdToExecute.Parameters.Add(New SqlParameter("@sNummer", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sNummer)) scmCmdToExecute.Parameters.Add(New SqlParameter("@daUnterzeichnet_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daUnterzeichnet_am)) scmCmdToExecute.Parameters.Add(New SqlParameter("@daVertragsbeginn", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daVertragsbeginn)) scmCmdToExecute.Parameters.Add(New SqlParameter("@daVertragsablauf", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daVertragsablauf)) scmCmdToExecute.Parameters.Add(New SqlParameter("@bBefristet_Unbefristet", SqlDbType.Bit, 1, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_bBefristet_Unbefristet)) scmCmdToExecute.Parameters.Add(New SqlParameter("@daMindestvertragsdauer_bis", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daMindestvertragsdauer_bis)) scmCmdToExecute.Parameters.Add(New SqlParameter("@daGekuendigt_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daGekuendigt_am)) scmCmdToExecute.Parameters.Add(New SqlParameter("@daGekuendigt_per", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daGekuendigt_per)) scmCmdToExecute.Parameters.Add(New SqlParameter("@iSecurityLevelNr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iSecurityLevelNr)) scmCmdToExecute.Parameters.Add(New SqlParameter("@sSuchbegriffe", SqlDbType.VarChar, 1024, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sSuchbegriffe)) scmCmdToExecute.Parameters.Add(New SqlParameter("@iApplikationNr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iApplikationNr)) scmCmdToExecute.Parameters.Add(New SqlParameter("@iLizenztypnr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iLizenztypnr)) scmCmdToExecute.Parameters.Add(New SqlParameter("@sLizenzdetails", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sLizenzdetails)) scmCmdToExecute.Parameters.Add(New SqlParameter("@daErstellt_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daErstellt_am)) scmCmdToExecute.Parameters.Add(New SqlParameter("@daMutiert_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daMutiert_am)) scmCmdToExecute.Parameters.Add(New SqlParameter("@iMutierer", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iMutierer)) scmCmdToExecute.Parameters.Add(New SqlParameter("@bAktiv", SqlDbType.Bit, 1, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_bAktiv)) 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. m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery() 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_Vertragselement_Update' reported the ErrorCode: " & m_iErrorCode.ToString()) End If Return True Catch ex As Exception ' // some error occured. Bubble it to caller and encapsulate Exception object Throw New Exception("clsVertragselement::Update::Error occured.", ex) Finally If m_bMainConnectionIsCreatedLocal Then ' // Close connection. m_scoMainConnection.Close() End If scmCmdToExecute.Dispose() End Try End Function ''' ''' Purpose: Update method for updating one or more rows using the Foreign Key 'VertragstypNr. ''' This method will Update one or more existing rows in the database. It will reset the field 'VertragstypNr' in ''' all rows which have as value for this field the value as set in property 'iVertragstypNrOld' to ''' the value as set in property 'iVertragstypNr'. ''' ''' True if succeeded, otherwise an Exception is thrown. ''' ''' Properties needed for this method: ''' ''' Properties set after a succesful call of this method: ''' ''' Public Function UpdateAllWVertragstypNrLogic() As Boolean Dim scmCmdToExecute As SqlCommand = New SqlCommand() scmCmdToExecute.CommandText = "dbo.[pr_Vertragselement_UpdateAllWVertragstypNrLogic]" scmCmdToExecute.CommandType = CommandType.StoredProcedure ' // Use base class' connection object scmCmdToExecute.Connection = m_scoMainConnection Try scmCmdToExecute.Parameters.Add(new SqlParameter("@iVertragstypNr", SqlDbType.Int, 4, ParameterDirection.Input, false, 10, 0, "", DataRowVersion.Proposed, m_iVertragstypNr)) scmCmdToExecute.Parameters.Add(new SqlParameter("@iVertragstypNrOld", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iVertragstypNrOld)) 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. m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery() m_iVertragstypNr = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iVertragstypNr").Value, Integer)) If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then ' // Throw error. Throw New Exception("Stored Procedure 'pr_Vertragselement_UpdateAllWVertragstypNrLogic' reported the ErrorCode: " & m_iErrorCode.ToString()) End If Return True Catch ex As Exception ' // some error occured. Bubble it to caller and encapsulate Exception object Throw New Exception("clsVertragselement::UpdateAllWVertragstypNrLogic::Error occured.", ex) Finally If m_bMainConnectionIsCreatedLocal Then ' // Close connection. m_scoMainConnection.Close() End If scmCmdToExecute.Dispose() End Try End Function ''' ''' Purpose: Update method for updating one or more rows using the Foreign Key 'VertragspartnerNr. ''' This method will Update one or more existing rows in the database. It will reset the field 'VertragspartnerNr' in ''' all rows which have as value for this field the value as set in property 'iVertragspartnerNrOld' to ''' the value as set in property 'iVertragspartnerNr'. ''' ''' True if succeeded, otherwise an Exception is thrown. ''' ''' Properties needed for this method: ''' ''' Properties set after a succesful call of this method: ''' ''' Public Function UpdateAllWVertragspartnerNrLogic() As Boolean Dim scmCmdToExecute As SqlCommand = New SqlCommand() scmCmdToExecute.CommandText = "dbo.[pr_Vertragselement_UpdateAllWVertragspartnerNrLogic]" scmCmdToExecute.CommandType = CommandType.StoredProcedure ' // Use base class' connection object scmCmdToExecute.Connection = m_scoMainConnection Try scmCmdToExecute.Parameters.Add(new SqlParameter("@iVertragspartnerNr", SqlDbType.Int, 4, ParameterDirection.Input, false, 10, 0, "", DataRowVersion.Proposed, m_iVertragspartnerNr)) scmCmdToExecute.Parameters.Add(new SqlParameter("@iVertragspartnerNrOld", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iVertragspartnerNrOld)) 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. m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery() m_iVertragspartnerNr = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iVertragspartnerNr").Value, Integer)) If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then ' // Throw error. Throw New Exception("Stored Procedure 'pr_Vertragselement_UpdateAllWVertragspartnerNrLogic' reported the ErrorCode: " & m_iErrorCode.ToString()) End If Return True Catch ex As Exception ' // some error occured. Bubble it to caller and encapsulate Exception object Throw New Exception("clsVertragselement::UpdateAllWVertragspartnerNrLogic::Error occured.", ex) Finally If m_bMainConnectionIsCreatedLocal Then ' // Close connection. m_scoMainConnection.Close() End If scmCmdToExecute.Dispose() End Try End Function ''' ''' Purpose: Delete method. This method will Delete one existing row in the database, based on the Primary Key. ''' ''' True if succeeded, otherwise an Exception is thrown. ''' ''' Properties needed for this method: ''' ''' Properties set after a succesful call of this method: ''' ''' Overrides Public Function Delete() As Boolean Dim scmCmdToExecute As SqlCommand = New SqlCommand() scmCmdToExecute.CommandText = "dbo.[pr_Vertragselement_Delete]" scmCmdToExecute.CommandType = CommandType.StoredProcedure ' // Use base class' connection object scmCmdToExecute.Connection = m_scoMainConnection Try scmCmdToExecute.Parameters.Add(New SqlParameter("@iVertragselementnr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iVertragselementnr)) 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. m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery() 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_Vertragselement_Delete' reported the ErrorCode: " & m_iErrorCode.ToString()) End If Return True Catch ex As Exception ' // some error occured. Bubble it to caller and encapsulate Exception object Throw New Exception("clsVertragselement::Delete::Error occured.", ex) Finally If m_bMainConnectionIsCreatedLocal Then ' // Close connection. m_scoMainConnection.Close() End If scmCmdToExecute.Dispose() End Try End Function ''' ''' Purpose: Delete method for a foreign key. This method will Delete one or more rows from the database, based on the Foreign Key 'VertragstypNr' ''' ''' true if succeeded, false otherwise ''' ''' Properties needed for this method: ''' ''' Properties set after a succesful call of this method: ''' ''' Public Function DeleteAllWVertragstypNrLogic() As Boolean Dim scmCmdToExecute As SqlCommand = New SqlCommand() scmCmdToExecute.CommandText = "dbo.[pr_Vertragselement_DeleteAllWVertragstypNrLogic]" scmCmdToExecute.CommandType = CommandType.StoredProcedure ' // Use base class' connection object scmCmdToExecute.Connection = m_scoMainConnection Try scmCmdToExecute.Parameters.Add(new SqlParameter("@iVertragstypNr", SqlDbType.Int, 4, ParameterDirection.Input, false, 10, 0, "", DataRowVersion.Proposed, m_iVertragstypNr)) 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. m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery() m_iVertragstypNr = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iVertragstypNr").Value, Integer)) If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then ' // Throw error. Throw New Exception("Stored Procedure 'pr_Vertragselement_DeleteAllWVertragstypNrLogic' reported the ErrorCode: " & m_iErrorCode.ToString()) End If Return True Catch ex As Exception ' // some error occured. Bubble it to caller and encapsulate Exception object Throw New Exception("clsVertragselement::DeleteAllWVertragstypNrLogic::Error occured.", ex) Finally If m_bMainConnectionIsCreatedLocal Then ' // Close connection. m_scoMainConnection.Close() End If scmCmdToExecute.Dispose() End Try End Function ''' ''' Purpose: Delete method for a foreign key. This method will Delete one or more rows from the database, based on the Foreign Key 'VertragspartnerNr' ''' ''' true if succeeded, false otherwise ''' ''' Properties needed for this method: ''' ''' Properties set after a succesful call of this method: ''' ''' Public Function DeleteAllWVertragspartnerNrLogic() As Boolean Dim scmCmdToExecute As SqlCommand = New SqlCommand() scmCmdToExecute.CommandText = "dbo.[pr_Vertragselement_DeleteAllWVertragspartnerNrLogic]" scmCmdToExecute.CommandType = CommandType.StoredProcedure ' // Use base class' connection object scmCmdToExecute.Connection = m_scoMainConnection Try scmCmdToExecute.Parameters.Add(new SqlParameter("@iVertragspartnerNr", SqlDbType.Int, 4, ParameterDirection.Input, false, 10, 0, "", DataRowVersion.Proposed, m_iVertragspartnerNr)) 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. m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery() m_iVertragspartnerNr = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iVertragspartnerNr").Value, Integer)) If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then ' // Throw error. Throw New Exception("Stored Procedure 'pr_Vertragselement_DeleteAllWVertragspartnerNrLogic' reported the ErrorCode: " & m_iErrorCode.ToString()) End If Return True Catch ex As Exception ' // some error occured. Bubble it to caller and encapsulate Exception object Throw New Exception("clsVertragselement::DeleteAllWVertragspartnerNrLogic::Error occured.", ex) Finally If m_bMainConnectionIsCreatedLocal Then ' // Close connection. m_scoMainConnection.Close() End If scmCmdToExecute.Dispose() End Try End Function ''' ''' Purpose: Select method. This method will Select one existing row from the database, based on the Primary Key. ''' ''' DataTable object if succeeded, otherwise an Exception is thrown. ''' ''' Properties needed for this method: ''' ''' Properties set after a succesful call of this method: ''' ''' Will fill all properties corresponding with a field in the table with the value of the row selected. ''' Overrides Public Function SelectOne() As DataTable Dim scmCmdToExecute As SqlCommand = New SqlCommand() scmCmdToExecute.CommandText = "dbo.[pr_Vertragselement_SelectOne]" scmCmdToExecute.CommandType = CommandType.StoredProcedure Dim dtToReturn As DataTable = new DataTable("Vertragselement") Dim sdaAdapter As SqlDataAdapter = new SqlDataAdapter(scmCmdToExecute) ' // Use base class' connection object scmCmdToExecute.Connection = m_scoMainConnection Try scmCmdToExecute.Parameters.Add(new SqlParameter("@iVertragselementnr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iVertragselementnr)) 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_Vertragselement_SelectOne' reported the ErrorCode: " & m_iErrorCode.ToString()) End If If dtToReturn.Rows.Count > 0 Then m_iVertragselementnr = New SqlInt32(CType(dtToReturn.Rows(0)("Vertragselementnr"), Integer)) If dtToReturn.Rows(0)("VertragstypNr") Is System.DBNull.Value Then m_iVertragstypNr = SqlInt32.Null Else m_iVertragstypNr = New SqlInt32(CType(dtToReturn.Rows(0)("VertragstypNr"), Integer)) End If If dtToReturn.Rows(0)("VertragspartnerNr") Is System.DBNull.Value Then m_iVertragspartnerNr = SqlInt32.Null Else m_iVertragspartnerNr = New SqlInt32(CType(dtToReturn.Rows(0)("VertragspartnerNr"), Integer)) End If If dtToReturn.Rows(0)("ParentID") Is System.DBNull.Value Then m_iParentID = SqlInt32.Null Else m_iParentID = New SqlInt32(CType(dtToReturn.Rows(0)("ParentID"), Integer)) End If If dtToReturn.Rows(0)("Bezeichnung") Is System.DBNull.Value Then m_sBezeichnung = SqlString.Null Else m_sBezeichnung = New SqlString(CType(dtToReturn.Rows(0)("Bezeichnung"), String)) End If If dtToReturn.Rows(0)("Beschreibung") Is System.DBNull.Value Then m_sBeschreibung = SqlString.Null Else m_sBeschreibung = New SqlString(CType(dtToReturn.Rows(0)("Beschreibung"), String)) End If If dtToReturn.Rows(0)("Version") Is System.DBNull.Value Then m_sVersion = SqlString.Null Else m_sVersion = New SqlString(CType(dtToReturn.Rows(0)("Version"), String)) End If If dtToReturn.Rows(0)("Versionsdatum") Is System.DBNull.Value Then m_daVersionsdatum = SqlDateTime.Null Else m_daVersionsdatum = New SqlDateTime(CType(dtToReturn.Rows(0)("Versionsdatum"), Date)) End If If dtToReturn.Rows(0)("Nummer") Is System.DBNull.Value Then m_sNummer = SqlString.Null Else m_sNummer = New SqlString(CType(dtToReturn.Rows(0)("Nummer"), String)) End If If dtToReturn.Rows(0)("Unterzeichnet_am") Is System.DBNull.Value Then m_daUnterzeichnet_am = SqlDateTime.Null Else m_daUnterzeichnet_am = New SqlDateTime(CType(dtToReturn.Rows(0)("Unterzeichnet_am"), Date)) End If If dtToReturn.Rows(0)("Vertragsbeginn") Is System.DBNull.Value Then m_daVertragsbeginn = SqlDateTime.Null Else m_daVertragsbeginn = New SqlDateTime(CType(dtToReturn.Rows(0)("Vertragsbeginn"), Date)) End If If dtToReturn.Rows(0)("Vertragsablauf") Is System.DBNull.Value Then m_daVertragsablauf = SqlDateTime.Null Else m_daVertragsablauf = New SqlDateTime(CType(dtToReturn.Rows(0)("Vertragsablauf"), Date)) End If If dtToReturn.Rows(0)("Befristet_Unbefristet") Is System.DBNull.Value Then m_bBefristet_Unbefristet = SqlBoolean.Null Else m_bBefristet_Unbefristet = New SqlBoolean(CType(dtToReturn.Rows(0)("Befristet_Unbefristet"), Boolean)) End If If dtToReturn.Rows(0)("Mindestvertragsdauer_bis") Is System.DBNull.Value Then m_daMindestvertragsdauer_bis = SqlDateTime.Null Else m_daMindestvertragsdauer_bis = New SqlDateTime(CType(dtToReturn.Rows(0)("Mindestvertragsdauer_bis"), Date)) End If If dtToReturn.Rows(0)("Gekuendigt_am") Is System.DBNull.Value Then m_daGekuendigt_am = SqlDateTime.Null Else m_daGekuendigt_am = New SqlDateTime(CType(dtToReturn.Rows(0)("Gekuendigt_am"), Date)) End If If dtToReturn.Rows(0)("Gekuendigt_per") Is System.DBNull.Value Then m_daGekuendigt_per = SqlDateTime.Null Else m_daGekuendigt_per = New SqlDateTime(CType(dtToReturn.Rows(0)("Gekuendigt_per"), Date)) End If If dtToReturn.Rows(0)("SecurityLevelNr") Is System.DBNull.Value Then m_iSecurityLevelNr = SqlInt32.Null Else m_iSecurityLevelNr = New SqlInt32(CType(dtToReturn.Rows(0)("SecurityLevelNr"), Integer)) End If If dtToReturn.Rows(0)("Suchbegriffe") Is System.DBNull.Value Then m_sSuchbegriffe = SqlString.Null Else m_sSuchbegriffe = New SqlString(CType(dtToReturn.Rows(0)("Suchbegriffe"), String)) End If If dtToReturn.Rows(0)("ApplikationNr") Is System.DBNull.Value Then m_iApplikationNr = SqlInt32.Null Else m_iApplikationNr = New SqlInt32(CType(dtToReturn.Rows(0)("ApplikationNr"), Integer)) End If If dtToReturn.Rows(0)("Lizenztypnr") Is System.DBNull.Value Then m_iLizenztypnr = SqlInt32.Null Else m_iLizenztypnr = New SqlInt32(CType(dtToReturn.Rows(0)("Lizenztypnr"), Integer)) End If If dtToReturn.Rows(0)("Lizenzdetails") Is System.DBNull.Value Then m_sLizenzdetails = SqlString.Null Else m_sLizenzdetails = New SqlString(CType(dtToReturn.Rows(0)("Lizenzdetails"), String)) End If If dtToReturn.Rows(0)("Erstellt_am") Is System.DBNull.Value Then m_daErstellt_am = SqlDateTime.Null Else m_daErstellt_am = New SqlDateTime(CType(dtToReturn.Rows(0)("Erstellt_am"), Date)) End If If dtToReturn.Rows(0)("Mutiert_am") Is System.DBNull.Value Then m_daMutiert_am = SqlDateTime.Null Else m_daMutiert_am = New SqlDateTime(CType(dtToReturn.Rows(0)("Mutiert_am"), Date)) End If If dtToReturn.Rows(0)("Mutierer") Is System.DBNull.Value Then m_iMutierer = SqlInt32.Null Else m_iMutierer = New SqlInt32(CType(dtToReturn.Rows(0)("Mutierer"), Integer)) End If If dtToReturn.Rows(0)("Aktiv") Is System.DBNull.Value Then m_bAktiv = SqlBoolean.Null Else m_bAktiv = New SqlBoolean(CType(dtToReturn.Rows(0)("Aktiv"), Boolean)) End If End If Return dtToReturn Catch ex As Exception ' // some error occured. Bubble it to caller and encapsulate Exception object Throw New Exception("clsVertragselement::SelectOne::Error occured.", ex) Finally If m_bMainConnectionIsCreatedLocal Then ' // Close connection. m_scoMainConnection.Close() End If scmCmdToExecute.Dispose() sdaAdapter.Dispose() End Try End Function ''' ''' Purpose: SelectAll method. This method will Select all rows from the table. ''' ''' DataTable object if succeeded, otherwise an Exception is thrown. ''' ''' Properties set after a succesful call of this method: ''' ''' Overrides Public Function SelectAll() As DataTable Dim scmCmdToExecute As SqlCommand = New SqlCommand() scmCmdToExecute.CommandText = "dbo.[pr_Vertragselement_SelectAll]" scmCmdToExecute.CommandType = CommandType.StoredProcedure Dim dtToReturn As DataTable = new DataTable("Vertragselement") 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_Vertragselement_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("clsVertragselement::SelectAll::Error occured.", ex) Finally If m_bMainConnectionIsCreatedLocal Then ' // Close connection. m_scoMainConnection.Close() End If scmCmdToExecute.Dispose() sdaAdapter.Dispose() End Try End Function ''' ''' Purpose: Select method for a foreign key. This method will Select one or more rows from the database, based on the Foreign Key 'VertragstypNr' ''' ''' DataTable object if succeeded, otherwise an Exception is thrown. ''' ''' Properties needed for this method: ''' ''' Properties set after a succesful call of this method: ''' ''' Public Function SelectAllWVertragstypNrLogic() As DataTable Dim scmCmdToExecute As SqlCommand = New SqlCommand() scmCmdToExecute.CommandText = "dbo.[pr_Vertragselement_SelectAllWVertragstypNrLogic]" scmCmdToExecute.CommandType = CommandType.StoredProcedure Dim dtToReturn As DataTable = new DataTable("Vertragselement") Dim sdaAdapter As SqlDataAdapter = new SqlDataAdapter(scmCmdToExecute) ' // Use base class' connection object scmCmdToExecute.Connection = m_scoMainConnection Try scmCmdToExecute.Parameters.Add(new SqlParameter("@iVertragstypNr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iVertragstypNr)) 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_iVertragstypNr = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iVertragstypNr").Value, Integer)) If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then ' // Throw error. Throw New Exception("Stored Procedure 'pr_Vertragselement_SelectAllWVertragstypNrLogic' 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("clsVertragselement::SelectAllWVertragstypNrLogic::Error occured.", ex) Finally If m_bMainConnectionIsCreatedLocal Then ' // Close connection. m_scoMainConnection.Close() End If scmCmdToExecute.Dispose() sdaAdapter.Dispose() End Try End Function ''' ''' Purpose: Select method for a foreign key. This method will Select one or more rows from the database, based on the Foreign Key 'VertragspartnerNr' ''' ''' DataTable object if succeeded, otherwise an Exception is thrown. ''' ''' Properties needed for this method: ''' ''' Properties set after a succesful call of this method: ''' ''' Public Function SelectAllWVertragspartnerNrLogic() As DataTable Dim scmCmdToExecute As SqlCommand = New SqlCommand() scmCmdToExecute.CommandText = "dbo.[pr_Vertragselement_SelectAllWVertragspartnerNrLogic]" scmCmdToExecute.CommandType = CommandType.StoredProcedure Dim dtToReturn As DataTable = new DataTable("Vertragselement") Dim sdaAdapter As SqlDataAdapter = new SqlDataAdapter(scmCmdToExecute) ' // Use base class' connection object scmCmdToExecute.Connection = m_scoMainConnection Try scmCmdToExecute.Parameters.Add(new SqlParameter("@iVertragspartnerNr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iVertragspartnerNr)) 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_iVertragspartnerNr = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iVertragspartnerNr").Value, Integer)) If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then ' // Throw error. Throw New Exception("Stored Procedure 'pr_Vertragselement_SelectAllWVertragspartnerNrLogic' 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("clsVertragselement::SelectAllWVertragspartnerNrLogic::Error occured.", ex) Finally If m_bMainConnectionIsCreatedLocal Then ' // Close connection. m_scoMainConnection.Close() End If scmCmdToExecute.Dispose() sdaAdapter.Dispose() End Try End Function #Region " Class Property Declarations " Public Property [iVertragselementnr]() As SqlInt32 Get Return m_iVertragselementnr End Get Set(ByVal Value As SqlInt32) Dim iVertragselementnrTmp As SqlInt32 = Value If iVertragselementnrTmp.IsNull Then Throw New ArgumentOutOfRangeException("iVertragselementnr", "iVertragselementnr can't be NULL") End If m_iVertragselementnr = Value End Set End Property Public Property [iVertragstypNr]() As SqlInt32 Get Return m_iVertragstypNr End Get Set(ByVal Value As SqlInt32) m_iVertragstypNr = Value End Set End Property Public Property [iVertragstypNrOld]() As SqlInt32 Get Return m_iVertragstypNrOld End Get Set(ByVal Value As SqlInt32) m_iVertragstypNrOld = Value End Set End Property Public Property [iVertragspartnerNr]() As SqlInt32 Get Return m_iVertragspartnerNr End Get Set(ByVal Value As SqlInt32) m_iVertragspartnerNr = Value End Set End Property Public Property [iVertragspartnerNrOld]() As SqlInt32 Get Return m_iVertragspartnerNrOld End Get Set(ByVal Value As SqlInt32) m_iVertragspartnerNrOld = Value End Set End Property Public Property [iParentID]() As SqlInt32 Get Return m_iParentID End Get Set(ByVal Value As SqlInt32) m_iParentID = Value End Set End Property Public Property [sBezeichnung]() As SqlString Get Return m_sBezeichnung End Get Set(ByVal Value As SqlString) m_sBezeichnung = Value End Set End Property Public Property [sBeschreibung]() As SqlString Get Return m_sBeschreibung End Get Set(ByVal Value As SqlString) m_sBeschreibung = Value End Set End Property Public Property [sVersion]() As SqlString Get Return m_sVersion End Get Set(ByVal Value As SqlString) m_sVersion = Value End Set End Property Public Property [daVersionsdatum]() As SqlDateTime Get Return m_daVersionsdatum End Get Set(ByVal Value As SqlDateTime) m_daVersionsdatum = Value End Set End Property Public Property [sNummer]() As SqlString Get Return m_sNummer End Get Set(ByVal Value As SqlString) m_sNummer = Value End Set End Property Public Property [daUnterzeichnet_am]() As SqlDateTime Get Return m_daUnterzeichnet_am End Get Set(ByVal Value As SqlDateTime) m_daUnterzeichnet_am = Value End Set End Property Public Property [daVertragsbeginn]() As SqlDateTime Get Return m_daVertragsbeginn End Get Set(ByVal Value As SqlDateTime) m_daVertragsbeginn = Value End Set End Property Public Property [daVertragsablauf]() As SqlDateTime Get Return m_daVertragsablauf End Get Set(ByVal Value As SqlDateTime) m_daVertragsablauf = Value End Set End Property Public Property [bBefristet_Unbefristet]() As SqlBoolean Get Return m_bBefristet_Unbefristet End Get Set(ByVal Value As SqlBoolean) m_bBefristet_Unbefristet = Value End Set End Property Public Property [daMindestvertragsdauer_bis]() As SqlDateTime Get Return m_daMindestvertragsdauer_bis End Get Set(ByVal Value As SqlDateTime) m_daMindestvertragsdauer_bis = Value End Set End Property Public Property [daGekuendigt_am]() As SqlDateTime Get Return m_daGekuendigt_am End Get Set(ByVal Value As SqlDateTime) m_daGekuendigt_am = Value End Set End Property Public Property [daGekuendigt_per]() As SqlDateTime Get Return m_daGekuendigt_per End Get Set(ByVal Value As SqlDateTime) m_daGekuendigt_per = Value End Set End Property Public Property [iSecurityLevelNr]() As SqlInt32 Get Return m_iSecurityLevelNr End Get Set(ByVal Value As SqlInt32) m_iSecurityLevelNr = Value End Set End Property Public Property [sSuchbegriffe]() As SqlString Get Return m_sSuchbegriffe End Get Set(ByVal Value As SqlString) m_sSuchbegriffe = Value End Set End Property Public Property [iApplikationNr]() As SqlInt32 Get Return m_iApplikationNr End Get Set(ByVal Value As SqlInt32) m_iApplikationNr = Value End Set End Property Public Property [iLizenztypnr]() As SqlInt32 Get Return m_iLizenztypnr End Get Set(ByVal Value As SqlInt32) m_iLizenztypnr = Value End Set End Property Public Property [sLizenzdetails]() As SqlString Get Return m_sLizenzdetails End Get Set(ByVal Value As SqlString) m_sLizenzdetails = Value End Set End Property Public Property [daErstellt_am]() As SqlDateTime Get Return m_daErstellt_am End Get Set(ByVal Value As SqlDateTime) m_daErstellt_am = Value End Set End Property Public Property [daMutiert_am]() As SqlDateTime Get Return m_daMutiert_am End Get Set(ByVal Value As SqlDateTime) m_daMutiert_am = Value End Set End Property Public Property [iMutierer]() As SqlInt32 Get Return m_iMutierer End Get Set(ByVal Value As SqlInt32) m_iMutierer = Value End Set End Property Public Property [bAktiv]() As SqlBoolean Get Return m_bAktiv End Get Set(ByVal Value As SqlBoolean) m_bAktiv = Value End Set End Property #End Region End Class End Namespace