示例#1
0
 private bool Seed()
 {
     using (var tra = _transactionProvider.CreateTransaction())
     {
         var result = CreateUser() && InitOptions() && InitContent();
         if (result)
         {
             tra.Commit();
         }
         else
         {
             tra.Rollback();
         }
         return(result);
     }
 }