06b2db0b4c
Introduced a many-to-many relationship between EventDefinition and Career entities, allowing for the association of multiple careers with an event. Updated the AppDbContext to include a DbSet for Careers and modified the EventDefinitionConfiguration to handle the new relationship. Enhanced the Create, Edit, and Details components to support input and display of related careers, including normalization and processing logic for career names. Updated the database schema to reflect these changes.
20 lines
312 B
C#
20 lines
312 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Core.Entities;
|
|
|
|
public class Career
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(200, MinimumLength = 1)]
|
|
[Display(Name = "Career Name")]
|
|
public string Name { get; set; } = null!;
|
|
|
|
public override string ToString()
|
|
{
|
|
return Name;
|
|
}
|
|
}
|
|
|