Пример #1
0
 public virtual MyRef3 GetOrCreateBO3(ISession s)
 {
     if (BO3 == null)
     {
         BO3 = new MyRef3();
         s.Save(BO3);
     }
     return BO3;
 }
Пример #2
0
 public virtual async Task <MyRef3> GetOrCreateBO3Async(ISession s, CancellationToken cancellationToken = default(CancellationToken))
 {
     if (BO3 == null)
     {
         BO3 = new MyRef3();
         await(s.SaveAsync(BO3, cancellationToken));
     }
     return(BO3);
 }
Пример #3
0
 public virtual MyRef3 GetOrCreateBO3(ISession s)
 {
     if (BO3 == null)
     {
         BO3 = new MyRef3();
         s.Save(BO3);
     }
     return(BO3);
 }