Пример #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;
     }
 }
Пример #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;
     }
 }