示例#1
0
 public void RegisterTOB()
 {
     try
     {
         if (LocalTOBKUIBO.GetAll().Count < 1)
         {
             //Get registration Id from service and insert into localDB.
             _registerId = GetRegisterId();
             TOBRegister tobRegister = new TOBRegister();
             tobRegister.RegisterId = new Guid(_registerId);
             LocalTOBKUIBO.Insert(tobRegister);
             LocalTOBKUIBO.SaveChanges();
         }
         else
         {
             _registerId = GetRegisterIDFromLocal();
         }
     }
     catch (Exception ex)
     {
         TOB.Logger.TOBLogger.WriteDebugInfo(ex.Message);
     }
 }
示例#2
0
partial         void InsertTOBRegister(TOBRegister instance);
示例#3
0
partial         void UpdateTOBRegister(TOBRegister instance);
示例#4
0
partial         void DeleteTOBRegister(TOBRegister instance);