I have an Entity structure in Code First Entity, which currently looks like this:
public class Entity { // snip ... public string OriginalDepartment { get; set; } public string OriginalQueue { get; set; } public string CurrentDepartment { get; set; } public string CurrentQueue { get; set; } }
I would like to create a Complex Type for these types somehow like this:
public class Location { public string Department { get; set; } public string Queue { get; set; } }
I would like to use the same type for Current and Original:
public Location Original { get; set; } public Location Current { get; set; }
Is this possible, or do I need to create two complex types CurrentLocation
and OriginalLocation
?
public class OriginalLocation { public string Department { get; set; } public string Queue { get; set; } } public class CurrentLocation { public string Department { get; set; } public string Queue { get; set; } }
source share