I know how to create Foreign Key in sql express and how to use dbml file and it's entities, But I like to change the name of a variable in one of my entities.
Let me explain this:
Lets think I have a Table named "Person" and this table has a Foreign Key to itself like parent and child. Now in C# I can use this syntax to get father of a child:
Person child = getSomePerson();
Person father = child.Person;
But I like to do something Like this:
Person child = getSomePerson();
Person father = child.father;
So what should I do to change default name "Person" To what I like it to be?
Edit 1:
It is better if I can do it with a sql query in sql server so I dont have to change anything in my C# project.