Note that there are some explanatory texts on larger screens.

plurals
  1. POComposition and RIA
    text
    copied!<p>i have problems with related properties Composition attribut and RIA.I 'm using POCO and silverlight. here is my modele :</p> <pre><code>[MetadataTypeAttribute(typeof(ModeleEnvoiEaMetaData))] [Serializable] public abstract partial class ModeleEnvoiEa { [DataMember] public virtual int IdModeleEnvoiEa {get;set;} [DataMember] public virtual string Libelle {get;set;} [DataMember] public virtual Nullable&lt;int&gt; IdModeleEnvoiEaFooter {...//FK } public virtual ModeleEnvoiEaHeaderFooter ModeleEnvoiEaFooter { get { return _modeleEnvoiEaFooter; } set { if (!ReferenceEquals(_modeleEnvoiEaFooter, value)) { var previousValue = _modeleEnvoiEaFooter; _modeleEnvoiEaFooter = value; FixupModeleEnvoiEaFooter(previousValue); } } } private ModeleEnvoiEaHeaderFooter _modeleEnvoiEaFooter; } public partial class ModeleEnvoiEaMetaData { //... [Association("ModeleEnvoiEa_ModeleEnvoiEaFooter","IdModeleEnvoiEaFooter","IdModeleEnvoiEaHeaderFooter")] [Include] [Composition] public ModeleEnvoiEaHeaderFooter ModeleEnvoiEaFooter; } } </code></pre> <p>In client side i call Test domaine service method , in the client side the property ModeleEnvoiEaFooter is not null, but in my DomainServices class this property is null. Even with de Composition attribut. How can i send the value of ModeleEnvoiEaFooter property to Domainservices class ?</p> <pre><code> [Invoke] public ModeleEnvoiEa Test(ModeleEnvoiEa modele) { // modele.IdModeleEnvoiEaFooter == 1 // FK to ModeleEnvoiEaFooter // modele.ModeleEnvoiEaFooter is null here ! Why ? an how can i send this object } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload