当我们使用CodeFirst时,有时候需要设置默认值!
如下
public int Delete { get; set; } = ;
public string AdminName {get; set;} = "admin";
public bool CacheDbResults { get; set; } = true;
当我们使用CodeFirst时,有时候需要设置默认值!
如下
public int Delete { get; set; } = ;
public string AdminName {get; set;} = "admin";
public bool CacheDbResults { get; set; } = true;