WCF RIA does not create a member in the Web.g.cs
unless the member would have been serialized. As ApplicationNumber
is a protected property, WCF RIA ignores it. This explains why it compiles in the web project, but not in Silverlight.
Have you tried not sharing the other partial but adding the property instead?
Change it to ClassA.cs
or ClassA.partial.cs
and the contents to:
namespace ABC.Web.Models.DomainModel
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
public abstract partial class ClassA
{
// You _do_ want this serialized to the client and back
// so remove the [IgnoreDataMember] atribute
public virtual string ApplicationNumberAccessor
{
get
{
return this.ApplicationNumber;
}
set
{
this.ApplicationNumber = value;
}
}
}
}