Guest User

Untitled

a guest
Dec 10th, 2019
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  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'
  2.  
  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. }
Advertisement
Add Comment
Please, Sign In to add comment