Which code segment should you use?

You are developing a library management application that uses the ADO.NET Entity Framework against a SQL
Server database.
The application has a method that returns check outs filtered by date.
The Book class is shown below.

You must filter the data on the SQL server before it is returned to the application server.
You need to return books checked out more recently than the entered date.
Which code segment should you use?

You are developing a library management application that uses the ADO.NET Entity Framework against a SQL
Server database.
The application has a method that returns check outs filtered by date.
The Book class is shown below.

You must filter the data on the SQL server before it is returned to the application server.
You need to return books checked out more recently than the entered date.
Which code segment should you use?

A.
Option A

B.
Option B

C.
Option C

D.
Option D


Explanation:
IQueryable should be used when we want to filter the data.



Leave a Reply 3

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


Manu

Manu

E: IEnumerable books = db.Books.Where(b => b.CheckoutDate >= date)

null

null

D is correct.

Jesley Cáceres Marcelino

Jesley Cáceres Marcelino

Yeah