Esempio n. 1
0
 /// <summary>
 ///     Resolves the dependencies by means of persisting all models that this model is referencing.
 /// </summary>
 protected override void ResolveGeneratedDependency()
 {
     base.ResolveGeneratedDependency();
     if (_orgId != null)
     {
         _orgId.Save();
         this.ModifiedData.OrgId = _orgId.Id == null && this.ModifiedData.OrgId != null ? "" : _orgId.Id;
     }
     if (_pnId != null)
     {
         _pnId.Save();
         this.ModifiedData.PnId = _pnId.Id == null && this.ModifiedData.PnId != null ? "" : _pnId.Id;
     }
 }
Esempio n. 2
0
 /// <summary>
 ///     Resolves the dependencies by means of persisting all models that this model is referencing.
 /// </summary>
 protected override void ResolveGeneratedDependency()
 {
     base.ResolveGeneratedDependency();
     if (_type != null)
     {
         _type.Save();
         this.ModifiedData.Type = _type.Value1;
     }
     if (_pnId != null)
     {
         _pnId.Save();
         this.ModifiedData.PnId = _pnId.Id == null && this.ModifiedData.PnId != null ? "" : _pnId.Id;
     }
 }