Tuesday, May 1, 2018

Why is it necessary to explicitly declare accessors and mutators when declaring a DBSet?

In the example of

public DbSet<Genre> Genres { get; set; }

Why is it that without the explicitly declared { get; set; } the application will throw a Exception Details: System.ArgumentNullException: Value cannot be null.?

Why is it necessary to explicitly declare accessors and mutators when declaring a DBSet? Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team