This question is locked. New answers and comments are not allowed.
Hi,
I have just upgraded to Q1 2011 and now Transient properties are not working. I am using the per-class fluent mapping configuration.
Here is an example entity:
When the Context is created (or when the enhancer runs) it now throws this error:
I can send a sample solution if needed.
Thanks.
I have just upgraded to Q1 2011 and now Transient properties are not working. I am using the per-class fluent mapping configuration.
Here is an example entity:
public
class
Person
{
public
static
Telerik.OpenAccess.Metadata.Fluent.MappingConfiguration<Person> GetEntityMappingConfig()
{
MappingConfiguration<Person> config =
new
MappingConfiguration<Person>();
config.MapType().ToTable(
"People"
);
config.HasProperty(p => p.id).IsIdentity(KeyGenerator.Autoinc);
config.HasProperty(p => p.IsAlive).AsTransient();
return
config;
}
public
int
id {
get
;
set
; }
public
string
Name {
get
;
set
; }
public
bool
IsAlive
{
get
{
// Run some other function
return
true
;
}
set
{
// do nothing
}
}
}
When the Context is created (or when the enhancer runs) it now throws this error:
System.MissingFieldException: There is no field with name isAlive backing IsAlive property in type DAL.Person. You need to either change the Field Naming rules of the mapping configuration object or call HasFieldName(string) with the name of the backing field.
I can send a sample solution if needed.
Thanks.