예제 #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
파일: Domain.cs 프로젝트: jrauber/GH1429
 public virtual MyRef3 GetOrCreateBO3(ISession s)
 {
     if (BO3 == null)
     {
         BO3 = new MyRef3();
         s.Save(BO3);
     }
     return(BO3);
 }