*Not* using navigation properties with Entity Framework?

Does anyone know if it's possible to not use the navigation properties feature of the entity framework for tables linked with a foreign key?

for example, if my client table has an AddressId, I want that AddressId in my model, I don't want it to have a .Address property. But I have thus far been unable to figure out how to do this.


Sure, you can do this. It's just that the designer won't help you very much. Delete the navigation property, and add a scalar property for AddressId. It will work, but you'll have to be careful about hitting Update Model in the designer, as it may try to "fix" things for you. It's worth getting used to editing EDMX; it's not that bad.

Need Your Help

DOCX to PDF Conversion using PHP Docx - storing instead of streaming to browser

php pdf docx file-conversion

One of my projects requires the conversion of DOCX to PDF. I came across the phpdocx project and everything converts fine, but it serves the file to the browser, which prompts the user to download ...

My concern about getting rid of loop from single link list

c algorithm

I know it is a FAQ and have a lot of answers such as Interview: Remove Loop in linked list - Java. but I have the following concerns. If I am wrong, please point out and would you please direct...