Can we influence Entity Relationship property names?
Posted: Thu 03 Nov 2011 10:18
Hi,
I've had this query from another team member. As I am relatively new to EF myself. I thought I would ask here as I'm not sure of the answer.
We have a table called Reachability with a column called Rch_Bg_NextHop_Connector.
This has a foreign key relationship to a table called Connector.
When the model is generated from a SQLite Database an Entity relationship property is created for it which is named Connector1.
The question my colleague has is this:
Can we configure the model to call it Rch_Bg_NextHop_Con_Object or something a little more obvious than Connector1?
I have a feeling that this maybe be to do with templates but I'm not sure if that is correct or not.
Regards,
Shaun Harvey
I've had this query from another team member. As I am relatively new to EF myself. I thought I would ask here as I'm not sure of the answer.
We have a table called Reachability with a column called Rch_Bg_NextHop_Connector.
This has a foreign key relationship to a table called Connector.
When the model is generated from a SQLite Database an Entity relationship property is created for it which is named Connector1.
The question my colleague has is this:
Can we configure the model to call it Rch_Bg_NextHop_Con_Object or something a little more obvious than Connector1?
I have a feeling that this maybe be to do with templates but I'm not sure if that is correct or not.
Regards,
Shaun Harvey