Add Profile Position Relationship
This commit is contained in:
parent
c99cb5344e
commit
5d518c69f3
1 changed files with 8 additions and 0 deletions
|
|
@ -324,6 +324,14 @@ namespace BMA.EHR.Application.Repositories.Commands
|
||||||
CommandTypeName = command.CommandType.Name
|
CommandTypeName = command.CommandType.Name
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// add profile position
|
||||||
|
var profilePosition = new ProfilePosition
|
||||||
|
{
|
||||||
|
Profile = profile,
|
||||||
|
OrganizationPosition = placementProfile.OrganizationPosition,
|
||||||
|
};
|
||||||
|
_dbContext.Set<ProfilePosition>().Add(profilePosition);
|
||||||
|
|
||||||
profile.Salaries.Add(salary);
|
profile.Salaries.Add(salary);
|
||||||
|
|
||||||
_dbContext.Set<Profile>().Add(profile);
|
_dbContext.Set<Profile>().Add(profile);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue