This question is locked. New answers and comments are not allowed.
Hi,
i'm using Telerik Data Access 2014.2.918.1 and the Fluent API.
I have models which use a custom libary named Catel (http://catelproject.com).
The properties in Catel have no real backing field. Example:
public partial class Country : ModelBase
{
[System.ComponentModel.DataAnnotations.Required()]
[System.ComponentModel.DataAnnotations.Key()]
public virtual Guid Id
{
get
{
return GetValue<Guid>(IdProperty);
}
set
{
SetValue(IdProperty, value);
}
}
public static readonly PropertyData IdProperty = RegisterProperty<Country, Guid>(o => o.Id);
}
configuration.HasProperty(x => x.Id).IsIdentity(KeyGenerator.Autoinc).WithDataAccessKind(DataAccessKind.ReadWrite).ToColumn("Id").IsNotNullable().HasColumnType("uniqueidentifier").HasPrecision(0).HasScale(0).HasDefaultValue();
Catel supports entity framework but i want to use Telerik Data Access.
How do i map the Id property with Fluent API without getting the MissingFieldException error? Thanks!
i'm using Telerik Data Access 2014.2.918.1 and the Fluent API.
I have models which use a custom libary named Catel (http://catelproject.com).
The properties in Catel have no real backing field. Example:
public partial class Country : ModelBase
{
[System.ComponentModel.DataAnnotations.Required()]
[System.ComponentModel.DataAnnotations.Key()]
public virtual Guid Id
{
get
{
return GetValue<Guid>(IdProperty);
}
set
{
SetValue(IdProperty, value);
}
}
public static readonly PropertyData IdProperty = RegisterProperty<Country, Guid>(o => o.Id);
}
configuration.HasProperty(x => x.Id).IsIdentity(KeyGenerator.Autoinc).WithDataAccessKind(DataAccessKind.ReadWrite).ToColumn("Id").IsNotNullable().HasColumnType("uniqueidentifier").HasPrecision(0).HasScale(0).HasDefaultValue();
Catel supports entity framework but i want to use Telerik Data Access.
How do i map the Id property with Fluent API without getting the MissingFieldException error? Thanks!