MicrosoftDocs / feedback

📢 docs.microsoft.com site feedback
https://learn.microsoft.com
Creative Commons Attribution 4.0 International
239 stars 160 forks source link

The column 'X' was specified multiple times for 't'. #3553

Open NilminiKiriwandala opened 3 years ago

NilminiKiriwandala commented 3 years ago

I upgraded my .netCore project from 1.0 to 3.1. I get below exception when I try to read an Entity with related objects "The column 'XXX' was specified multiple times for 't'."

I am trying to read it as below var result = db.Actuacion.Where(m => m.ActId == id && m.TempSave != true) .Include(m => m.Siniestro) .Include(m => m.Medico) .Include(m=>m.Factura).FirstOrDefault();

In here Factura and Medico both has same column name "XXX" Please let me know a workaround for this behaviour

welcome[bot] commented 3 years ago

Thank you for creating the issue! One of our team members will get back to you shortly with additional information. If this is a product issue, please close this and contact the particular product's support instead (see https://support.microsoft.com/allproducts for the list of support websites).

rootsmusic commented 3 years ago

@NilminiKiriwandala You should contact product support.