Backing Fields
Backing Fields
Basic configuration
class MyContext : DbContext
{
public DbSet<Blog> Blogs { get; set; }
}
public class Blog
{
private string _url;
public int BlogId { get; set; }
public string Url
{
get { return _url; }
set { _url = value; }
}
}Data Annotations
Fluent API
Field and property access
Field-only properties
Last updated
