I have the following situation:
I have a table 'Product' which has
Id | Name
Then I have another table Product_Vendor which has
Id | Product_Id | Vendor_Id
where Product_Id is a foreign key to Product.Id. Now in my Entity class code, I want the Product entity to have a property
List<Guid> Vendors { get; set; }
Which contains all the Vendor_Id's that corresponds with the Product_id in Product_Vendor. The thing is, the Vendor_Id is a Guid that comes from a table that is in another database so it technically is not a foreign key, just a uniqueidentifier field with no constraints.
How can I map this using fluent api mapping in my ProductEntity EntityConfiguration? I use C# and SQL. I hope this is a bit clear, more information can be provided if needed :-)