Which code do you need to add a collection EmployeeRelatives, with deferred loading, to Employee class?

DRAG DROP
Exhibit:
Public Property EmployeeID() As integer

End Get
Set
End Set
End Properly
Public Property EmployeeName() As String
Get
End Get
End Set
End Property
Public Property City As String
Get
End Get
End Set
End Property Public Property CV() As Byte()
Get
End Get
set
End Set
End Property
There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
PassGuideApp connects to a MS SQL Server database PassGuideDB.
To obtain data from PassGuideDB ADO.NET LINQ to SQL model is used.
There is a class Employee. See exhibit for definition.
You need to add a collection EmployeeRelatives, with deferred loading, to Employee class.
Which code do you need to add?

DRAG DROP
Exhibit:

Public Property EmployeeID() As integer

End Get
Set
End Set
End Properly
Public Property EmployeeName() As String
Get
End Get
End Set
End Property
Public Property City As String
Get
End Get
End Set
End Property Public Property CV() As Byte()
Get
End Get
set
End Set
End Property

There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
PassGuideApp connects to a MS SQL Server database PassGuideDB.
To obtain data from PassGuideDB ADO.NET LINQ to SQL model is used.
There is a class Employee. See exhibit for definition.
You need to add a collection EmployeeRelatives, with deferred loading, to Employee class.
Which code do you need to add?

Answer:

Explanation:



Leave a Reply 2

Your email address will not be published. Required fields are marked *


John Galt

John Galt

Duplicate of question #17, but this one is in VB.