-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
68 additions
and
12 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
JobLeet.WebApi/JobLeet.Api/Controllers/Common/V1/QualificationController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using JobLeet.WebApi.JobLeet.Api.Logging; | ||
using JobLeet.WebApi.JobLeet.Api.Models.Common.V1; | ||
using JobLeet.WebApi.JobLeet.Core.Interfaces.Common.V1; | ||
using Microsoft.AspNetCore.Components; | ||
|
||
namespace JobLeet.WebApi.JobLeet.Api.Controllers.Common.V1 | ||
{ | ||
[Route("api/v1/qualification-types")] | ||
public class QualificationController : BaseApiController<QualificationModel, IQualificationTypeRepository> | ||
{ | ||
public QualificationController(IQualificationTypeRepository qualificationTypeRepository, ILoggerManagerV1 logger) | ||
: base(qualificationTypeRepository, logger) | ||
{ | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
JobLeet.WebApi/JobLeet.Infrastructure/Data/Contexts/V1/QualificationConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using JobLeet.WebApi.JobLeet.Core.Entities.Common.V1; | ||
using Microsoft.EntityFrameworkCore; | ||
using Microsoft.EntityFrameworkCore.Metadata.Builders; | ||
|
||
namespace JobLeet.WebApi.JobLeet.Infrastructure.Data.Contexts.V1 | ||
{ | ||
public class QualificationConfiguration : IEntityTypeConfiguration<Qualification> | ||
{ | ||
public void Configure(EntityTypeBuilder<Qualification> builer) | ||
{ | ||
builer.ToTable("Qualification"); | ||
builer.HasKey(e => e.Id); | ||
builer.Property(e => e.Id).HasColumnName("qualification_id"); | ||
builer.Property(e => e.QualificationType).HasColumnName("qualification_type"); | ||
builer.Property(e => e.QualificationInformation).HasColumnName("qualification_information"); | ||
builer.OwnsOne(qualification => qualification.MetaData); | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters