Exemplo n.º 1
0
 private void FillByGetPermutation(CommonLibrary.Enumerations.GetPermutations getPermutation, TestSprocGenerator.Business.SingleTable.Bo.Folks filledBo)
 {
     if (this.BaseDataAccessAvailable())
     {
         this.Clear();
         TestSprocGenerator.Data.SingleTable.Dto.Folks        dto       = ((TestSprocGenerator.Data.SingleTable.Dto.Folks)(filledBo));
         List <TestSprocGenerator.Data.SingleTable.Dto.Folks> returnDto = _baseDataAccess.Get(dto, getPermutation);
         int control = returnDto.Count;
         if ((control > 0))
         {
             int counter;
             for (counter = 0; (counter < control); counter = (counter + 1))
             {
                 TestSprocGenerator.Business.SingleTable.Bo.Folks boToFill = new TestSprocGenerator.Business.SingleTable.Bo.Folks(_databaseSmoObjectsAndSettings);
                 _baseBusiness.FillThisWithDto(returnDto[counter], boToFill);
                 this.Add(boToFill);
             }
         }
     }
     else
     {
         throw new System.ApplicationException(FILL_DB_SETTINGS_EXCEPTION);
     }
 }
Exemplo n.º 2
0
 public virtual void FillByGetAll(TestSprocGenerator.Business.SingleTable.Bo.Folks filledBo)
 {
     CommonLibrary.Enumerations.GetPermutations getPermutation = CommonLibrary.Enumerations.GetPermutations.AllByColumnMappings;
     this.FillByGetPermutation(getPermutation, filledBo);
 }
Exemplo n.º 3
0
 public virtual void FillByCriteriaExact(TestSprocGenerator.Business.SingleTable.Bo.Folks filledBo)
 {
     CommonLibrary.Enumerations.GetPermutations getPermutation = CommonLibrary.Enumerations.GetPermutations.ByExplicitCriteria;
     this.FillByGetPermutation(getPermutation, filledBo);
 }
Exemplo n.º 4
0
 public virtual void FillByPrimaryKey(TestSprocGenerator.Business.SingleTable.Bo.Folks filledBo)
 {
     CommonLibrary.Enumerations.GetPermutations getPermutation = CommonLibrary.Enumerations.GetPermutations.ByPrimaryKey;
     this.FillByGetPermutation(getPermutation, filledBo);
 }
Exemplo n.º 5
0
 private void FillPropertiesFromBo(TestSprocGenerator.Business.SingleTable.Bo.Folks filledBo)
 {
     _baseBusiness.FillPropertiesFromBo(filledBo, this);
 }
Exemplo n.º 6
0
 public Folks(CommonLibrary.DatabaseSmoObjectsAndSettings databaseSmoObjectsAndSettings, TestSprocGenerator.Business.SingleTable.Bo.Folks filledBo)
 {
     _databaseSmoObjectsAndSettings = databaseSmoObjectsAndSettings;
     _baseDataAccess =
         new CommonLibrary.Base.Database.BaseDataAccess <TestSprocGenerator.Data.SingleTable.Dto.Folks>(_databaseSmoObjectsAndSettings);
     _baseBusiness =
         new CommonLibrary.Base.Business.BaseBusiness <TestSprocGenerator.Business.SingleTable.Bo.Folks, TestSprocGenerator.Data.SingleTable.Dto.Folks>(_databaseSmoObjectsAndSettings);
     this.FillPropertiesFromBo(filledBo);
 }