Posted on: 10/20/2014 10:48:10 AM | Views : 340

Hi all,
          I have below models for code first entity framework
public class Features { [Key] public long Id { get; set; } public string Name { get; set; } } public class Actions { [Key] public long Id { get; set; } public string Name { get; set; } } public class FeatureAction { [Key] public long Id { get; set; } public long FeatureId { get; set; } public long ActionId { get; set; } [ForeignKey("FeatureId")] public Features Features { get; set; } [ForeignKey("ActionId")] public Actions Actions { get; set; } } How can i get the Features and Actions values corresponding to FeatureId and ActionId by calling db.FeatureActions. As of now i am getting the id, Acti ...

Go to the complete details ...