Posted on: 10/21/2014 4:47:39 AM | Views : 409

Hi All,
         I have below models
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; } } public class Privilege { [Key] public long Id { get; set; } public string RoleId { get; set; } public long FeatureActionId { get; set; } [ForeignKey(&qu ...

Go to the complete details ...