Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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'
- public class UserConfig : IEntityTypeConfiguration<User>
- {
- public void Configure(EntityTypeBuilder<User> builder)
- {
- builder.Property(p => p.FirstName).IsRequired();
- builder.Property(p => p.LastName).IsRequired();
- builder.Property(p => p.MiddleName).IsRequired();
- builder.Property(p => p.JobPosition).IsRequired();
- builder.HasIndex(i => i.ActiveDirectoryName).IsUnique();
- }
- }
- public class User : Entity
- {
- public JobPosition JobPosition { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement