/// <summary> /// This method will get row(s) from the database using the value of the field specified /// </summary> /// /// <param name="field" type="string">Field of the class BDTaxType</param> /// <param name="fieldValue" type="object">Value for the field specified.</param> /// <param name="fieldValue2" type="object">Value for the field specified.</param> /// <param name="typeOperation" type="TypeOperation">Operator that is used if fieldValue2=null or fieldValue2="".</param> /// /// <returns>List of object of class BDTaxType in the form of an object of class BDTaxTypeCollection</returns> public BDTaxTypeCollection SelectByField(string field, object fieldValue, object fieldValue2, TypeOperation typeOperation) { BDTaxTypeCollection bDTaxTypeCollection = new BDTaxTypeCollection(); foreach (POS.DataLayer.BDTaxType _bDTaxType in POS.DataLayer.BDTaxTypeBase.SelectByField(field, fieldValue, fieldValue2, typeOperation)) { _bDTaxTypeWCF = new BDTaxType(); _bDTaxTypeWCF.TaxTypeID = _bDTaxType.TaxTypeID; _bDTaxTypeWCF.TaxTypeName = _bDTaxType.TaxTypeName; bDTaxTypeCollection.Add(_bDTaxTypeWCF); } return(bDTaxTypeCollection); }
/// <summary> /// This method will return a list of objects representing the specified number of entries from the specified record number in the table /// using the value of the field specified /// </summary> /// /// <param name="field" type="string">Field of the class BDTaxType</param> /// <param name="fieldValue" type="object">Value for the field specified.</param> /// <param name="fieldValue2" type="object">Value for the field specified.</param> /// <param name="typeOperation" type="TypeOperation">Operator that is used if fieldValue2=null or fieldValue2="".</param> /// <param name="orderByStatement" type="string">The field value to number.</param> /// <param name="pageSize" type="int">Number of records returned.</param> /// <param name="skipPages" type="int">The number of missing pages.</param> /// /// <returns>List of object of class BDTaxType in the form of an object of class BDTaxTypeCollection</returns> public BDTaxTypeCollection SelectByFieldPaged(string field, object fieldValue, object fieldValue2, TypeOperation typeOperation, int pageSize, int skipPages, string orderByStatement) { BDTaxTypeCollection bDTaxTypeCollection = new BDTaxTypeCollection(); foreach (POS.DataLayer.BDTaxType _bDTaxType in POS.DataLayer.BDTaxTypeBase.SelectByFieldPaged(field, fieldValue, fieldValue2, typeOperation, pageSize, skipPages, orderByStatement)) { _bDTaxTypeWCF = new BDTaxType(); _bDTaxTypeWCF.TaxTypeID = _bDTaxType.TaxTypeID; _bDTaxTypeWCF.TaxTypeName = _bDTaxType.TaxTypeName; bDTaxTypeCollection.Add(_bDTaxTypeWCF); } return(bDTaxTypeCollection); }
/// <summary> /// This method will return a list of objects representing all records in the table. /// </summary> /// /// <returns>list of objects of class BDTaxType in the form of object of BDTaxTypeCollection </returns> public BDTaxTypeCollection SelectAll() { BDTaxTypeCollection bDTaxTypeCollection = new BDTaxTypeCollection(); foreach (POS.DataLayer.BDTaxType _bDTaxType in POS.DataLayer.BDTaxTypeBase.SelectAll()) { _bDTaxTypeWCF = new BDTaxType(); _bDTaxTypeWCF.TaxTypeID = _bDTaxType.TaxTypeID; _bDTaxTypeWCF.TaxTypeName = _bDTaxType.TaxTypeName; bDTaxTypeCollection.Add(_bDTaxTypeWCF); } return(bDTaxTypeCollection); }
/// <summary> /// This method will return a list of objects representing all records in the table. /// </summary> /// /// <returns>list of objects of class BDTaxType in the form of object of BDTaxTypeCollection </returns> public BDTaxTypeCollection SelectAll() { BDTaxTypeCollection bDTaxTypeCollection = new BDTaxTypeCollection(); foreach (POS.DataLayer.BDTaxType _bDTaxType in POS.DataLayer.BDTaxTypeBase.SelectAll()) { _bDTaxTypeWCF = new BDTaxType(); _bDTaxTypeWCF.TaxTypeID = _bDTaxType.TaxTypeID; _bDTaxTypeWCF.TaxTypeName = _bDTaxType.TaxTypeName; _bDTaxTypeWCF.TaxValue = _bDTaxType.TaxValue; bDTaxTypeCollection.Add(_bDTaxTypeWCF); } return bDTaxTypeCollection; }
/// <summary> /// This method will return a list of objects representing the specified number of entries from the specified record number in the table. /// </summary> /// /// <param name="pageSize" type="int">Number of records returned.</param> /// <param name="skipPages" type="int">The number of missing pages.</param> /// <param name="orderByStatement" type="string">The field value to number.</param> /// /// <returns>list of objects of class BDTaxType in the form of an object of class BDTaxTypeCollection </returns> public BDTaxTypeCollection SelectAllPaged(int?pageSize, int?skipPages, string orderByStatement) { BDTaxTypeCollection bDTaxTypeCollection = new BDTaxTypeCollection(); foreach (POS.DataLayer.BDTaxType _bDTaxType in POS.DataLayer.BDTaxTypeBase.SelectAllPaged(pageSize, skipPages, orderByStatement)) { _bDTaxTypeWCF = new BDTaxType(); _bDTaxTypeWCF.TaxTypeID = _bDTaxType.TaxTypeID; _bDTaxTypeWCF.TaxTypeName = _bDTaxType.TaxTypeName; bDTaxTypeCollection.Add(_bDTaxTypeWCF); } return(bDTaxTypeCollection); }
/// <summary> /// This method will return a list of objects representing the specified number of entries from the specified record number in the table /// using the value of the field specified /// </summary> /// /// <param name="field" type="string">Field of the class BDTaxType</param> /// <param name="fieldValue" type="object">Value for the field specified.</param> /// <param name="fieldValue2" type="object">Value for the field specified.</param> /// <param name="typeOperation" type="TypeOperation">Operator that is used if fieldValue2=null or fieldValue2="".</param> /// <param name="orderByStatement" type="string">The field value to number.</param> /// <param name="pageSize" type="int">Number of records returned.</param> /// <param name="skipPages" type="int">The number of missing pages.</param> /// /// <returns>List of object of class BDTaxType in the form of an object of class BDTaxTypeCollection</returns> public BDTaxTypeCollection SelectByFieldPaged(string field, object fieldValue, object fieldValue2, TypeOperation typeOperation, int pageSize, int skipPages, string orderByStatement) { BDTaxTypeCollection bDTaxTypeCollection = new BDTaxTypeCollection(); foreach (POS.DataLayer.BDTaxType _bDTaxType in POS.DataLayer.BDTaxTypeBase.SelectByFieldPaged(field, fieldValue, fieldValue2, typeOperation, pageSize, skipPages, orderByStatement)) { _bDTaxTypeWCF = new BDTaxType(); _bDTaxTypeWCF.TaxTypeID = _bDTaxType.TaxTypeID; _bDTaxTypeWCF.TaxTypeName = _bDTaxType.TaxTypeName; _bDTaxTypeWCF.TaxValue = _bDTaxType.TaxValue; bDTaxTypeCollection.Add(_bDTaxTypeWCF); } return bDTaxTypeCollection; }
/// <summary> /// This method will return a list of objects representing the specified number of entries from the specified record number in the table. /// </summary> /// /// <param name="pageSize" type="int">Number of records returned.</param> /// <param name="skipPages" type="int">The number of missing pages.</param> /// <param name="orderByStatement" type="string">The field value to number.</param> /// /// <returns>list of objects of class BDTaxType in the form of an object of class BDTaxTypeCollection </returns> public BDTaxTypeCollection SelectAllPaged(int? pageSize, int? skipPages, string orderByStatement) { BDTaxTypeCollection bDTaxTypeCollection = new BDTaxTypeCollection(); foreach (POS.DataLayer.BDTaxType _bDTaxType in POS.DataLayer.BDTaxTypeBase.SelectAllPaged(pageSize, skipPages, orderByStatement)) { _bDTaxTypeWCF = new BDTaxType(); _bDTaxTypeWCF.TaxTypeID = _bDTaxType.TaxTypeID; _bDTaxTypeWCF.TaxTypeName = _bDTaxType.TaxTypeName; _bDTaxTypeWCF.TaxValue = _bDTaxType.TaxValue; bDTaxTypeCollection.Add(_bDTaxTypeWCF); } return bDTaxTypeCollection; }
/// <summary> /// This method will get row(s) from the database using the value of the field specified /// </summary> /// /// <param name="field" type="string">Field of the class BDTaxType</param> /// <param name="fieldValue" type="object">Value for the field specified.</param> /// <param name="fieldValue2" type="object">Value for the field specified.</param> /// <param name="typeOperation" type="TypeOperation">Operator that is used if fieldValue2=null or fieldValue2="".</param> /// /// <returns>List of object of class BDTaxType in the form of an object of class BDTaxTypeCollection</returns> public BDTaxTypeCollection SelectByField(string field, object fieldValue, object fieldValue2, TypeOperation typeOperation) { BDTaxTypeCollection bDTaxTypeCollection = new BDTaxTypeCollection(); foreach (POS.DataLayer.BDTaxType _bDTaxType in POS.DataLayer.BDTaxTypeBase.SelectByField(field, fieldValue, fieldValue2, typeOperation)) { _bDTaxTypeWCF = new BDTaxType(); _bDTaxTypeWCF.TaxTypeID = _bDTaxType.TaxTypeID; _bDTaxTypeWCF.TaxTypeName = _bDTaxType.TaxTypeName; _bDTaxTypeWCF.TaxValue = _bDTaxType.TaxValue; bDTaxTypeCollection.Add(_bDTaxTypeWCF); } return bDTaxTypeCollection; }
/// <summary> /// Populates the fields for multiple objects from the columns found in an open reader. /// </summary> /// /// <param name="rdr" type="IDataReader">An object that implements the IDataReader interface</param> /// /// <returns>Object of BDTaxTypeCollection</returns> /// /// <remarks> /// /// <RevisionHistory> /// Author Date Description /// DLGenerator 3/7/2015 2:37:03 PM Created function /// /// </RevisionHistory> /// /// </remarks> /// internal static BDTaxTypeCollection PopulateObjectsFromReaderWithCheckingReader(IDataReader rdr, DatabaseHelper oDatabaseHelper) { BDTaxTypeCollection list = new BDTaxTypeCollection(); if (rdr.Read()) { BDTaxType obj = new BDTaxType(); PopulateObjectFromReader(obj, rdr); list.Add(obj); while (rdr.Read()) { obj = new BDTaxType(); PopulateObjectFromReader(obj, rdr); list.Add(obj); } oDatabaseHelper.Dispose(); return list; } else { oDatabaseHelper.Dispose(); return null; } }
/// <summary> /// Populates the fields for multiple objects from the columns found in an open reader. /// </summary> /// /// <param name="rdr" type="IDataReader">An object that implements the IDataReader interface</param> /// /// <returns>Object of BDTaxTypeCollection</returns> /// /// <remarks> /// /// <RevisionHistory> /// Author Date Description /// DLGenerator 3/7/2015 2:37:03 PM Created function /// /// </RevisionHistory> /// /// </remarks> /// internal static BDTaxTypeCollection PopulateObjectsFromReader(IDataReader rdr) { BDTaxTypeCollection list = new BDTaxTypeCollection(); while (rdr.Read()) { BDTaxType obj = new BDTaxType(); PopulateObjectFromReader(obj,rdr); list.Add(obj); } return list; }