Remove ProfileObjStateDto and update mappings
- Deleted the `ProfileObjStateDto` class and its `States` property. - Removed mapping for `ProfileObjState` to `ProfileObjStateDto` in `MappingProfile`. - Updated `States` mapping to handle null values by converting to a list or returning an empty array. - Replaced `States` property in `ProfileObjState` with a `ToList()` method that aggregates state values.
This commit is contained in:
@@ -82,8 +82,7 @@ public class ProfileObjState
|
||||
[ForeignKey("StateId")]
|
||||
public virtual State? State1 { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public IEnumerable<string?> States => new List<string?>
|
||||
public IEnumerable<string?> ToList() => new List<string?>
|
||||
{
|
||||
State1?.IntlState, State2, State3, State4
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user