/// <summary> /// This method will return a list of objects representing all records in the table. /// </summary> /// /// <returns>list of objects of class ADRole in the form of object of ADRoleCollection </returns> public ADRoleCollection SelectAll() { ADRoleCollection aDRoleCollection = new ADRoleCollection(); foreach (POS.DataLayer.ADRole _aDRole in POS.DataLayer.ADRoleBase.SelectAll()) { _aDRoleWCF = new ADRole(); _aDRoleWCF.RoleID = _aDRole.RoleID; _aDRoleWCF.RoleName = _aDRole.RoleName; _aDRoleWCF.RolePath = _aDRole.RolePath; aDRoleCollection.Add(_aDRoleWCF); } return(aDRoleCollection); }
/// <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 ADRole in the form of an object of class ADRoleCollection </returns> public ADRoleCollection SelectAllPaged(int?pageSize, int?skipPages, string orderByStatement) { ADRoleCollection aDRoleCollection = new ADRoleCollection(); foreach (POS.DataLayer.ADRole _aDRole in POS.DataLayer.ADRoleBase.SelectAllPaged(pageSize, skipPages, orderByStatement)) { _aDRoleWCF = new ADRole(); _aDRoleWCF.RoleID = _aDRole.RoleID; _aDRoleWCF.RoleName = _aDRole.RoleName; _aDRoleWCF.RolePath = _aDRole.RolePath; aDRoleCollection.Add(_aDRoleWCF); } return(aDRoleCollection); }
/// <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 ADRole</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 ADRole in the form of an object of class ADRoleCollection</returns> public ADRoleCollection SelectByFieldPaged(string field, object fieldValue, object fieldValue2, TypeOperation typeOperation, int pageSize, int skipPages, string orderByStatement) { ADRoleCollection aDRoleCollection = new ADRoleCollection(); foreach (POS.DataLayer.ADRole _aDRole in POS.DataLayer.ADRoleBase.SelectByFieldPaged(field, fieldValue, fieldValue2, typeOperation, pageSize, skipPages, orderByStatement)) { _aDRoleWCF = new ADRole(); _aDRoleWCF.RoleID = _aDRole.RoleID; _aDRoleWCF.RoleName = _aDRole.RoleName; _aDRoleWCF.RolePath = _aDRole.RolePath; aDRoleCollection.Add(_aDRoleWCF); } return(aDRoleCollection); }
/// <summary> /// This method will return a list of objects representing all records in the table. /// </summary> /// /// <returns>list of objects of class ADRole in the form of object of ADRoleCollection </returns> public ADRoleCollection SelectAll() { ADRoleCollection aDRoleCollection = new ADRoleCollection(); foreach (POS.DataLayer.ADRole _aDRole in POS.DataLayer.ADRoleBase.SelectAll()) { _aDRoleWCF = new ADRole(); _aDRoleWCF.RoleID = _aDRole.RoleID; _aDRoleWCF.RoleName = _aDRole.RoleName; _aDRoleWCF.RolePath = _aDRole.RolePath; _aDRoleWCF.MenuButton = _aDRole.MenuButton; aDRoleCollection.Add(_aDRoleWCF); } return aDRoleCollection; }
/// <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 ADRole</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 ADRole in the form of an object of class ADRoleCollection</returns> public ADRoleCollection SelectByField(string field, object fieldValue, object fieldValue2, TypeOperation typeOperation) { ADRoleCollection aDRoleCollection = new ADRoleCollection(); foreach (POS.DataLayer.ADRole _aDRole in POS.DataLayer.ADRoleBase.SelectByField(field, fieldValue, fieldValue2, typeOperation)) { _aDRoleWCF = new ADRole(); _aDRoleWCF.RoleID = _aDRole.RoleID; _aDRoleWCF.RoleName = _aDRole.RoleName; _aDRoleWCF.RolePath = _aDRole.RolePath; aDRoleCollection.Add(_aDRoleWCF); } return(aDRoleCollection); }
/// <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 ADRoleCollection</returns> /// /// <remarks> /// /// <RevisionHistory> /// Author Date Description /// DLGenerator 5/2/2015 4:01:01 AM Created function /// /// </RevisionHistory> /// /// </remarks> /// internal static ADRoleCollection PopulateObjectsFromReaderWithCheckingReader(IDataReader rdr, DatabaseHelper oDatabaseHelper) { ADRoleCollection list = new ADRoleCollection(); if (rdr.Read()) { ADRole obj = new ADRole(); PopulateObjectFromReader(obj, rdr); list.Add(obj); while (rdr.Read()) { obj = new ADRole(); 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 ADRoleCollection</returns> /// /// <remarks> /// /// <RevisionHistory> /// Author Date Description /// DLGenerator 5/2/2015 4:01:01 AM Created function /// /// </RevisionHistory> /// /// </remarks> /// internal static ADRoleCollection PopulateObjectsFromReader(IDataReader rdr) { ADRoleCollection list = new ADRoleCollection(); while (rdr.Read()) { ADRole obj = new ADRole(); PopulateObjectFromReader(obj,rdr); list.Add(obj); } return list; }
/// <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 ADRole</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 ADRole in the form of an object of class ADRoleCollection</returns> public ADRoleCollection SelectByFieldPaged(string field, object fieldValue, object fieldValue2, TypeOperation typeOperation, int pageSize, int skipPages, string orderByStatement) { ADRoleCollection aDRoleCollection = new ADRoleCollection(); foreach (POS.DataLayer.ADRole _aDRole in POS.DataLayer.ADRoleBase.SelectByFieldPaged(field, fieldValue, fieldValue2, typeOperation, pageSize, skipPages, orderByStatement)) { _aDRoleWCF = new ADRole(); _aDRoleWCF.RoleID = _aDRole.RoleID; _aDRoleWCF.RoleName = _aDRole.RoleName; _aDRoleWCF.RolePath = _aDRole.RolePath; _aDRoleWCF.MenuButton = _aDRole.MenuButton; aDRoleCollection.Add(_aDRoleWCF); } return aDRoleCollection; }
/// <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 ADRole in the form of an object of class ADRoleCollection </returns> public ADRoleCollection SelectAllPaged(int? pageSize, int? skipPages, string orderByStatement) { ADRoleCollection aDRoleCollection = new ADRoleCollection(); foreach (POS.DataLayer.ADRole _aDRole in POS.DataLayer.ADRoleBase.SelectAllPaged(pageSize, skipPages, orderByStatement)) { _aDRoleWCF = new ADRole(); _aDRoleWCF.RoleID = _aDRole.RoleID; _aDRoleWCF.RoleName = _aDRole.RoleName; _aDRoleWCF.RolePath = _aDRole.RolePath; _aDRoleWCF.MenuButton = _aDRole.MenuButton; aDRoleCollection.Add(_aDRoleWCF); } return aDRoleCollection; }
/// <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 ADRole</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 ADRole in the form of an object of class ADRoleCollection</returns> public ADRoleCollection SelectByField(string field, object fieldValue, object fieldValue2, TypeOperation typeOperation) { ADRoleCollection aDRoleCollection = new ADRoleCollection(); foreach (POS.DataLayer.ADRole _aDRole in POS.DataLayer.ADRoleBase.SelectByField(field, fieldValue, fieldValue2, typeOperation)) { _aDRoleWCF = new ADRole(); _aDRoleWCF.RoleID = _aDRole.RoleID; _aDRoleWCF.RoleName = _aDRole.RoleName; _aDRoleWCF.RolePath = _aDRole.RolePath; _aDRoleWCF.MenuButton = _aDRole.MenuButton; aDRoleCollection.Add(_aDRoleWCF); } return aDRoleCollection; }