Exemplo n.º 1
0
        private ActivityStreams(long activityId)
        {
            _unitOfWork       = new Data.UnitOfWork();
            _containedStreams = new List <Models.Stream>();

            ActivityId = activityId;
        }
        protected async Task <ValidationResult> Commit(Interfaces.IUnitOfWork uow, string message)
        {
            if (!await uow.Commit())
            {
                AddError(message);
            }

            return(ValidationResult);
        }
 private void tbSerialNumber_Validating(object sender, CancelEventArgs e)
 {
     using (Interfaces.IUnitOfWork uow = UnitOfWorkFactory.CreateUnitOfWork())
     {
         var module = uow.ModuleRepository.FindSingle(x => x.Name == tbSerialNumber.Text);
         if (module == null)
         {
             hasError = true;
             formErrorProvider.SetError(tbSerialNumber, "Serial number not found.");
         }
     }
 }
Exemplo n.º 4
0
 private ActivityStreams(long activityId, IEnumerable <Stream> stream)
 {
     _unitOfWork       = new Data.UnitOfWork();
     _containedStreams = stream.OrderBy(s => s.Time).ToList();
     ActivityId        = activityId;
 }
Exemplo n.º 5
0
 public StudentsController(Interfaces.IUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }
Exemplo n.º 6
0
 public SuppliersController(Interfaces.IUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }
Exemplo n.º 7
0
 public RegionsController(Interfaces.IUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }
 public ActivityPeakDetails(IEnumerable <ActivityPeakDetail> peaks)
 {
     _unitOfWork     = new Data.UnitOfWork();
     _containedPeaks = peaks.ToList();
 }
Exemplo n.º 9
0
 public CategoriesController(Interfaces.IUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }
 protected async Task <ValidationResult> Commit(Interfaces.IUnitOfWork uow)
 {
     return(await Commit(uow, "There was an error saving data").ConfigureAwait(false));
 }
Exemplo n.º 11
0
 public AnimalsController(Interfaces.IUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }
Exemplo n.º 12
0
 public AddressesController(Interfaces.IUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }
Exemplo n.º 13
0
 public ProcessQueueJob(int jobId)
 {
     _uow   = new Data.UnitOfWork();
     _jobId = jobId;
 }
Exemplo n.º 14
0
 public PetController(Interfaces.IUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }
Exemplo n.º 15
0
 public ProductsController(Interfaces.IUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }
Exemplo n.º 16
0
 public EmployeeTerritoriesController(Interfaces.IUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }
Exemplo n.º 17
0
 public OrderDetailsController(Interfaces.IUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }
Exemplo n.º 18
0
 public CustomersController(Interfaces.IUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }
 public CustomerDemographicsController(Interfaces.IUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }