a guest Dec 10th, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. The property 'User.JobPosition' is of type 'JobPosition' which is not supported by current database provider. Either change the property CLR type or ignore the property using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'
  3. public class UserConfig : IEntityTypeConfiguration<User>
  4. {
  5.     public void Configure(EntityTypeBuilder<User> builder)
  6.     {
  7.         builder.Property(p => p.JobPosition).IsRequired();
  8.     }
  9. }
  10. public class User : Entity
  11. {
  12.     public JobPosition JobPosition { get; set; }
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand