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