Beispiel #1
0
 private void FillByGetPermutation(CommonLibrary.Enumerations.GetPermutations getPermutation, TestSprocGenerator.Business.SingleTable.Bo.Profile_EmailAddress filledBo)
 {
     if (this.BaseDataAccessAvailable())
     {
         this.Clear();
         TestSprocGenerator.Data.SingleTable.Dto.Profile_EmailAddress        dto       = ((TestSprocGenerator.Data.SingleTable.Dto.Profile_EmailAddress)(filledBo));
         List <TestSprocGenerator.Data.SingleTable.Dto.Profile_EmailAddress> 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.Profile_EmailAddress boToFill = new TestSprocGenerator.Business.SingleTable.Bo.Profile_EmailAddress(_databaseSmoObjectsAndSettings);
                 _baseBusiness.FillThisWithDto(returnDto[counter], boToFill);
                 this.Add(boToFill);
             }
         }
     }
     else
     {
         throw new System.ApplicationException(FILL_DB_SETTINGS_EXCEPTION);
     }
 }
 public virtual void FillByPrimaryKey(TestSprocGenerator.Business.SingleTable.Bo.Profile_Blog filledBo)
 {
     CommonLibrary.Enumerations.GetPermutations getPermutation = CommonLibrary.Enumerations.GetPermutations.ByPrimaryKey;
     this.FillByGetPermutation(getPermutation, filledBo);
 }
Beispiel #3
0
 public virtual void FillByCriteriaFuzzy(TestSprocGenerator.Business.SingleTable.Bo.BlogAccessRequest filledBo)
 {
     CommonLibrary.Enumerations.GetPermutations getPermutation = CommonLibrary.Enumerations.GetPermutations.ByFuzzyCriteria;
     this.FillByGetPermutation(getPermutation, filledBo);
 }
Beispiel #4
0
 public virtual void FillByGetAll(Business.SingleTable.Bo.Folks filledBo)
 {
     CommonLibrary.Enumerations.GetPermutations getPermutation = CommonLibrary.Enumerations.GetPermutations.AllByColumnMappings;
     this.FillByGetPermutation(getPermutation, filledBo);
 }
Beispiel #5
0
 public virtual void FillByCriteriaExact(Business.SingleTable.Bo.Folks filledBo)
 {
     CommonLibrary.Enumerations.GetPermutations getPermutation = CommonLibrary.Enumerations.GetPermutations.ByExplicitCriteria;
     this.FillByGetPermutation(getPermutation, filledBo);
 }
Beispiel #6
0
 public virtual void FillByPrimaryKey(Business.SingleTable.Bo.Folks filledBo)
 {
     CommonLibrary.Enumerations.GetPermutations getPermutation = CommonLibrary.Enumerations.GetPermutations.ByPrimaryKey;
     this.FillByGetPermutation(getPermutation, filledBo);
 }
 public virtual void FillByPrimaryKey(TestSprocGenerator.Business.SingleTable.Bo.WebsiteLinkAccessRequest filledBo)
 {
     CommonLibrary.Enumerations.GetPermutations getPermutation = CommonLibrary.Enumerations.GetPermutations.ByPrimaryKey;
     this.FillByGetPermutation(getPermutation, filledBo);
 }
Beispiel #8
0
 public virtual void FillByCriteriaFuzzy(CodeSampleApplication.Bo.Person_Contact filledBo)
 {
     CommonLibrary.Enumerations.GetPermutations getPermutation = CommonLibrary.Enumerations.GetPermutations.ByFuzzyCriteria;
     this.FillByGetPermutation(getPermutation, filledBo);
 }
 public void FillByGetAll(TestSprocGenerator.Business.SingleTable.Bo.TestTable bo)
 {
     CommonLibrary.Enumerations.GetPermutations getPermutation =
         CommonLibrary.Enumerations.GetPermutations.AllByColumnMappings;
     this.FillByGetPermutation(getPermutation, bo);
 }
 public void FillByCriteriaExact(TestSprocGenerator.Business.SingleTable.Bo.TestTable bo)
 {
     CommonLibrary.Enumerations.GetPermutations getPermutation =
         CommonLibrary.Enumerations.GetPermutations.ByExplicitCriteria;
     this.FillByGetPermutation(getPermutation, bo);
 }
        //public TestTable(TestSprocGenerator.Business.SingleTable.Bo.TestTable filledBo,
        //                 CommonLibrary.DatabaseSmoObjectsAndSettings databaseSmoObjectsAndSettings)
        //{
        //    _databaseSmoObjectsAndSettings = databaseSmoObjectsAndSettings;
        //    _baseDataAccess = new CommonLibrary.Base.Database.BaseDataAccess<TestSprocGenerator.Data.SingleTable.Dto.TestTable>(_databaseSmoObjectsAndSettings);
        //}

        public void FillByPrimaryKey(TestSprocGenerator.Business.SingleTable.Bo.TestTable bo)
        {
            CommonLibrary.Enumerations.GetPermutations getPermutation =
                CommonLibrary.Enumerations.GetPermutations.ByPrimaryKey;
            this.FillByGetPermutation(getPermutation, bo);
        }
Beispiel #12
0
 public virtual void FillByGetAll(CodeSampleApplication.Bo.Person filledBo)
 {
     CommonLibrary.Enumerations.GetPermutations getPermutation = CommonLibrary.Enumerations.GetPermutations.AllByColumnMappings;
     this.FillByGetPermutation(getPermutation, filledBo);
 }
Beispiel #13
0
 public virtual void FillByCriteriaExact(CodeSampleApplication.Bo.Person filledBo)
 {
     CommonLibrary.Enumerations.GetPermutations getPermutation = CommonLibrary.Enumerations.GetPermutations.ByExplicitCriteria;
     this.FillByGetPermutation(getPermutation, filledBo);
 }
Beispiel #14
0
 public virtual void FillByPrimaryKey(CodeSampleApplication.Bo.Person filledBo)
 {
     CommonLibrary.Enumerations.GetPermutations getPermutation = CommonLibrary.Enumerations.GetPermutations.ByPrimaryKey;
     this.FillByGetPermutation(getPermutation, filledBo);
 }
 public virtual void FillByCriteriaExact(TestSprocGenerator.Business.SingleTable.Bo.Profile_Blog filledBo)
 {
     CommonLibrary.Enumerations.GetPermutations getPermutation = CommonLibrary.Enumerations.GetPermutations.ByExplicitCriteria;
     this.FillByGetPermutation(getPermutation, filledBo);
 }
 public virtual void FillByGetAll(TestSprocGenerator.Business.SingleTable.Bo.Profile_Blog filledBo)
 {
     CommonLibrary.Enumerations.GetPermutations getPermutation = CommonLibrary.Enumerations.GetPermutations.AllByColumnMappings;
     this.FillByGetPermutation(getPermutation, filledBo);
 }
Beispiel #17
0
 public virtual void FillByCriteriaFuzzy(TestSprocGenerator.Business.SingleTable.Bo.CustomerDemographics filledBo)
 {
     CommonLibrary.Enumerations.GetPermutations getPermutation = CommonLibrary.Enumerations.GetPermutations.ByFuzzyCriteria;
     this.FillByGetPermutation(getPermutation, filledBo);
 }