We are using Include in few of our LINQ queries. However was wondering that the include method overload only shows (string path) as parameter, what if we change the database table name(s) and regenerate the entities then the include part will throw runtime errors. How to catch such issues at compile time?
Example:
Material has BusinessUnit.
So we use repo.Material.Include("BusinessUnit")
what if we change BusinessUnit entity name to OrgUnit or something else.