Entity Framework: Creating Custom Properties

Consider the implementation of the Entity Framework in the DAL assembly. I need to add a read-only custom property to an object.

The Person class , as defined in the database, contains fields such as:

PersonID
FirstName
LastName

In the above example, I would like to create a FullName property. It will be a concatenation

FirstName + " " + LastName;

Can someone specify a .edmxlocation in the file to determine this new property? Perhaps this is done in the GUI designer?

+3
source share
1 answer

EF - .NET . , LINQ ESQL, .

- , EF .

EF EDMX.

+2

All Articles