I am using .net 3.5 framework sp1 and VS 2008 sp1. I have created an edmx model. I couldn't create a transient (which is not persisted to the database) property .
Any ideas?
I am using .net 3.5 framework sp1 and VS 2008 sp1. I have created an edmx model. I couldn't create a transient (which is not persisted to the database) property .
Any ideas?
You can add properties to a partial class for the type you are interested in adding transient properties to - see here.
The Entity Data Model doesn't currently support the idea of transient properties. However as Christopher pointed out, you can create a CLR properties in a partial class, that doesn't map to an Entity property.
This will work fine, but bear in mind all references to that property in LINQ to Entity queries will result in exceptions.