This question is locked. New answers and comments are not allowed.
Hello,
I'm trying to add a transient field to one of my entities. I've created a partial class in the OpenAccess project (example below) but when I run my application I get a DataStoreException: Invalid column name.
I want the client to see the transient field as an extra property of the class but I don't want it referred to when reading the data from the database. I thought this would be achieved using Transient attribute.
What have I missed?
Regards,
Craig
(OpenAccess ORM Q1 2013)
I'm trying to add a transient field to one of my entities. I've created a partial class in the OpenAccess project (example below) but when I run my application I get a DataStoreException: Invalid column name.
I want the client to see the transient field as an extra property of the class but I don't want it referred to when reading the data from the database. I thought this would be achieved using Transient attribute.
What have I missed?
Regards,
Craig
(OpenAccess ORM Q1 2013)
using
System;
using
System.Linq;
namespace
MyNameSpace
{
public
partial
class
MyType
{
private
string
_extraProperty;
[Telerik.OpenAccess.Transient]
public
string
ExtraProperty
{
get
{
return
this
._extraProperty;
}
set
{
this
._extraProperty= value;
}
}
}
}