File was renamed from FlexJobApi.Core/Entities/Users/Users/User.cs |
| | |
| | | public EnumUserGender? Gender { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 生日 |
| | | /// </summary> |
| | | public DateTime? Birthday { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 年龄 |
| | | /// </summary> |
| | | public int? Age { get; set; } |
| | |
| | | /// 常驻城市 |
| | | /// </summary> |
| | | public DictionaryData City { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 身份编号 |
| | | /// </summary> |
| | | public string PersonalIdentityCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 身份 |
| | | /// </summary> |
| | | public DictionaryData PersonalIdentity { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 学历编号 |
| | | /// </summary> |
| | | public string EducationalBackgroundCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 学历 |
| | | /// </summary> |
| | | public DictionaryData EducationalBackground { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 空闲时间 |
| | | /// </summary> |
| | | public EnumPersonalFreeTime? FreeTime { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 求职状态 |
| | | /// </summary> |
| | | public EnumPersonalJobSeekingStatus? JobSeekingStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 工作资历 |
| | | /// </summary> |
| | | public string WorkSeniority { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 工作经验 |
| | | /// </summary> |
| | | public string WorkExperience { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 身高 |
| | | /// </summary> |
| | | public int? Height { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 体重 |
| | | /// </summary> |
| | | public int? Weight { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 备注 |
| | |
| | | .HasForeignKey(it => it.CityCode) |
| | | .HasPrincipalKey(it => it.Code) |
| | | .OnDelete(DeleteBehavior.Restrict); |
| | | entityBuilder |
| | | .HasOne(it => it.PersonalIdentity) |
| | | .WithMany() |
| | | .HasForeignKey(it => it.PersonalIdentityCode) |
| | | .HasPrincipalKey(it => it.Code) |
| | | .OnDelete(DeleteBehavior.Restrict); |
| | | entityBuilder |
| | | .HasOne(it => it.EducationalBackground) |
| | | .WithMany() |
| | | .HasForeignKey(it => it.EducationalBackgroundCode) |
| | | .HasPrincipalKey(it => it.Code) |
| | | .OnDelete(DeleteBehavior.Restrict); |
| | | } |
| | | |
| | | public IEnumerable<User> HasData(DbContext dbContext, Type dbContextLocator) |