I am having a look at Entity Framework and am wondering how to join 2 objects where one object contains a row version column.
For example
public class Product
{
[Key, Column(Order = 1)]
public Guid ProductGuid {get;set;}
[Key, Column(Order = 2)]
public int RowVersion {get;set;}
public string DisplayName {get;set;}
// ... more properties ...
}
public class DeviceConfiguration
{
[Key]
public Product TheProduct {get;set;}
[Key]
public string WorkstationName {get;set;}
public string ConfigurationString {get;set;}
}
How can I get DeviceConfiguration
to pick up the Product
row with the highest value of RowVersion
?