In EF, everything works, but in naming of object i have
Table1.TablePerson
Table1.TablePerson1
there is some way to change it without change EDMX? (I don't want to do it everytime that i change a field name in a table). IT is very bad writing code with this names! :)
thanks
Since your db only has a table called "TablePerson", so how do you get a TablePerson1?
Because i have 2 relation in the database between table1 and tablePerson. So the first is called TablePerson and the secondo TablePerson1 in EF. but it is very unconfortable to use it in the code.
kuria
Member
5 Points
41 Posts
Naming problem
Jan 04, 2013 02:52 PM|LINK
Hi. I have a table in MSSL that is related two times with another table. Example
TABLE1
ID_Table1
ID_TablePerson_Meaning_brother
ID_TablePerson_Meaning_sister
TABLEPerson
ID_TablePerson
In EF, everything works, but in naming of object i have
Table1.TablePerson
Table1.TablePerson1
there is some way to change it without change EDMX? (I don't want to do it everytime that i change a field name in a table). IT is very bad writing code with this names! :)
thanks
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Naming problem
Jan 05, 2013 02:31 AM|LINK
Hi,
Since your db only has a table called "TablePerson", so how do you get a TablePerson1?
thaicarrot
Contributor
5120 Points
1459 Posts
Re: Naming problem
Jan 06, 2013 11:44 AM|LINK
click right on the EF designer then update model from database.
Weera
kuria
Member
5 Points
41 Posts
Re: Naming problem
Jan 08, 2013 08:55 AM|LINK
Because i have 2 relation in the database between table1 and tablePerson. So the first is called TablePerson and the secondo TablePerson1 in EF. but it is very unconfortable to use it in the code.
kuria
Member
5 Points
41 Posts
Re: Naming problem
Jan 08, 2013 08:55 AM|LINK
I don't have problem with the model, is only the names that are very confused!
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Naming problem
Jan 10, 2013 12:16 AM|LINK
Hello,
In fact I think you can just delete your edmx and then re-create another one.