mishrajicoder
New Member
- Joined
- Oct 17, 2022
- Messages
- 6
- Thread Author
- #1
In essence, I obtained a table in my EF database with the following properties:
When I convert the int of Rating to a double, I receive the following issue when updating the database:
Column 'Rating' is required by the object 'DF Movies Rating 48CFD27E'. ALTER TABLE ALTER COLUMN Rating failed because this column is used by one or more objects.
What exactly is the problem?
Code:
public int Id { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public string Image { get; set; }
public string WatchUrl { get; set; }
public int Year { get; set; }
public string Source { get; set; }
public int Duration { get; set; }
public int Rating { get; set; }
public virtual ICollection<Category> Categories { get; set; }
Column 'Rating' is required by the object 'DF Movies Rating 48CFD27E'. ALTER TABLE ALTER COLUMN Rating failed because this column is used by one or more objects.
What exactly is the problem?