C # UWP Windows 10 project
Trying to figure out c EF7.
There are two classes (tables):
[Table("Transactions")] public class Transaction { [Key] public Guid Id { get; set; } publi List<Guid> Tags { get; set; } ... } [Table("Tags")] public class Transaction { [Key] public Guid Id { get; set; } ... } How to define such a connection in this framework?
UPD: The main thing is that the Tags field in the Transactions table is necessary in the form of a List<Guid> , because in this case, it's also JsonProperty , but you also need a connection for navigation ...
UPD2: Will this code work?
[JsonProperty("tag")] List<Guid> TagsId { get; set; } [JsonIgnore, ForeignKey("TagsId")] public List<Tag> Tags { get; set; }
EF7, something I have not heard that it has already been officially released.EF6not suitable? - sp7