26.02.2015 Views

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

pstrCustName = Value<br />

End Set<br />

End Property<br />

Public Function Update() As Boolean<br />

‘ first / core concern<br />

If pstrCustcode.Length() > 10 Then<br />

Throw New Exception("Value can not be greater than 10")<br />

End If<br />

' usingthe customer audit trail to do auditing<br />

‘ second concern / system concern<br />

Dim pobjClsAuditTrail As New ClsAuditTrail<br />

With pobjClsAuditTrail<br />

.NewValue = "1001"<br />

.OldValue = "1003"<br />

.UserName = "shiv"<br />

.Update()<br />

End With<br />

' then inserting the customer in database<br />

End Function<br />

End Class<br />

Public Class ClsAuditTrail<br />

Private pstrUserName As String<br />

Private pstrOldValue As String<br />

Private pstrNewValue As String<br />

Private pdblLogTime As Double<br />

166

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!