Пример #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 (_status != null)
     {
         _status.Save();
         this.ModifiedData.Status = _status.Value1;
     }
 }
Пример #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 (_profStatus != null)
     {
         _profStatus.Save();
         this.ModifiedData.Status = _profStatus.Value1;
     }
     if (_volunteer != null)
     {
         _volunteer.Save();
         this.ModifiedData.VolId = _volunteer.Id == null && this.ModifiedData.VolId != null ? "" : _volunteer.Id;
     }
 }
 /// <summary>
 ///     Resolves the dependencies by means of persisting all models that this model is referencing.
 /// </summary>
 protected override void ResolveGeneratedDependency()
 {
     base.ResolveGeneratedDependency();
     if (_status != null)
     {
         _status.Save();
         this.ModifiedData.Status = _status.Value1;
     }
     if (_trainer != null)
     {
         _trainer.Save();
         this.ModifiedData.TrainId = _trainer.Id == null && this.ModifiedData.TrainId != null ? "" : _trainer.Id;
     }
 }
Пример #4
0
 /// <summary>
 ///     Resolves the dependencies by means of persisting all models that this model is referencing.
 /// </summary>
 protected override void ResolveGeneratedDependency()
 {
     base.ResolveGeneratedDependency();
     if (_attrib01Type != null)
     {
         _attrib01Type.Save();
         this.ModifiedData.Attrib01 = _attrib01Type.Value1;
     }
     if (_category != null)
     {
         _category.Save();
         this.ModifiedData.Category = _category.Value1;
     }
 }