Pertanyaan dan Jawaban Wawancara Paling Populer & Tes Online
Platform edukasi untuk persiapan wawancara, tes online, tutorial, dan latihan langsung

Bangun keterampilan dengan jalur belajar terfokus, tes simulasi, dan konten siap wawancara.

WithoutBook menghadirkan pertanyaan wawancara per subjek, tes latihan online, tutorial, dan panduan perbandingan dalam satu ruang belajar yang responsif.

Prepare Interview

Entity Framework Pertanyaan dan Jawaban Wawancara

Ques 41. Explain the purpose of the AsNoFilter method in Entity Framework.

The AsNoFilter method is used to disable query filters defined in the model, allowing you to retrieve entities without applying those filters.

Apakah ini membantu? Add Comment View Comments
 

Ques 42. What is the purpose of the Keyless attribute in Entity Framework?

The Keyless attribute is used to specify that an entity type does not have a primary key, and it is used for query types that represent database views or tables without primary keys.

Example:

[Keyless] public class MyQueryType { /* properties */ }

Apakah ini membantu? Add Comment View Comments
 

Ques 43. Explain the purpose of the FindAsync method in Entity Framework.

The FindAsync method is used to asynchronously retrieve an entity from the database by its primary key value.

Example:

var entity = await context.MyEntities.FindAsync(1);

Apakah ini membantu? Add Comment View Comments
 

Ques 44. What is the purpose of the Entry.StateChanged event in Entity Framework?

The Entry.StateChanged event is triggered when the state of an entity being tracked by the context changes. It can be used for implementing custom logic based on entity state changes.

Example:

entry.StateChanged += (sender, e) => { /* custom logic */ };

Apakah ini membantu? Add Comment View Comments
 

Ques 45. Explain the purpose of the IsDeleted property in Entity Framework.

The IsDeleted property is often used in soft delete scenarios where instead of actually deleting a record, a flag is set to mark it as deleted.

Example:

public bool IsDeleted { get; set; }

Apakah ini membantu? Add Comment View Comments
 

Most helpful rated by users:

Hak Cipta © 2026, WithoutBook.