We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is on the latest stable version of the library (1.8.116)
I'm not sure if this is a bug or by design.
The ignored 'Number' column in the below class is being added to the table upon creation of the database.
[Table("Questions")] public class Question { [PrimaryKey, AutoIncrement] public int Id { get; set; } [Unique, NotNull] public string UrlCode { get; set; } [NotNull] public string QuestionText { get; set; } [NotNull] public string QuestionAnswer { get; set; } [Ignore] public int Number { get; set; } = 1; }
Current workaround is to ignore the column in OnModelCreating instead:
OnModelCreating
protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity<Question>().Ignore(q => q.Number); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is on the latest stable version of the library (1.8.116)
I'm not sure if this is a bug or by design.
The ignored 'Number' column in the below class is being added to the table upon creation of the database.
Current workaround is to ignore the column in
OnModelCreating
instead:The text was updated successfully, but these errors were encountered: