This question is locked. New answers and comments are not allowed.
I'm having this error when trying to access my WCF DataService. The country mapping is the following:
public MappingConfiguration MapEntity() { MappingConfiguration<Country> mapping = new MappingConfiguration<Country>(); mapping.MapType().ToTable("Country"); mapping.HasProperty(x => x.Id).WithConverter("OpenAccessRuntime.Data.Bytes2GuidConverter").HasColumnType("raw(16)").IsIdentity(); mapping.HasProperty(x => x.Version).IsVersion(); return mapping; } The model class:The error occurs in the OpenAccessMetadataProvider, in method MakeConfigurationReadOnly methodpublic partial class Country : BaseEntity { //some properties here }public partial class BaseEntity { [Required()] [Key()] public virtual Guid Id { get; set; } }
What could be the problem ?