fix #4855 - dropping required column causes issue on SQLite

This commit is contained in:
sbwalker
2024-11-22 11:55:43 -05:00
parent 043fb1abd1
commit 7d94e4a53a
5 changed files with 42 additions and 4 deletions

View File

@ -29,9 +29,10 @@ namespace Oqtane.Models
/// </summary>
public bool IsDefault { get; set; }
[NotMapped]
/// <summary>
/// Language Name - corresponds to <see cref="Culture.DisplayName"/>, _not_ <see cref="Culture.Name"/>
/// Note that this property still exists in the database because columns cannot be dropped in SQLite
/// Therefore the property must be retained/mapped even though the framework populates it from the Culture API
/// </summary>
public string Name { get; set; }