Example #1
0
        /// <summary>
        /// This method will return a list of objects representing all records in the table.
        /// </summary>
        ///
        /// <returns>list of objects of class AGGroupRole in the form of object of AGGroupRoleCollection </returns>
        public AGGroupRoleCollection SelectAll()
        {
            AGGroupRoleCollection aGGroupRoleCollection = new AGGroupRoleCollection();

            foreach (POS.DataLayer.AGGroupRole _aGGroupRole in POS.DataLayer.AGGroupRoleBase.SelectAll())
            {
                _aGGroupRoleWCF = new AGGroupRole();

                _aGGroupRoleWCF.GroupRoleID = _aGGroupRole.GroupRoleID;
                _aGGroupRoleWCF.GroupID     = _aGGroupRole.GroupID;
                _aGGroupRoleWCF.RoleID      = _aGGroupRole.RoleID;

                aGGroupRoleCollection.Add(_aGGroupRoleWCF);
            }
            return(aGGroupRoleCollection);
        }
Example #2
0
        /// <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 AGGroupRole in the form of an object of class AGGroupRoleCollection </returns>
        public AGGroupRoleCollection SelectAllPaged(int?pageSize, int?skipPages, string orderByStatement)
        {
            AGGroupRoleCollection aGGroupRoleCollection = new AGGroupRoleCollection();

            foreach (POS.DataLayer.AGGroupRole _aGGroupRole in POS.DataLayer.AGGroupRoleBase.SelectAllPaged(pageSize, skipPages, orderByStatement))
            {
                _aGGroupRoleWCF = new AGGroupRole();

                _aGGroupRoleWCF.GroupRoleID = _aGGroupRole.GroupRoleID;
                _aGGroupRoleWCF.GroupID     = _aGGroupRole.GroupID;
                _aGGroupRoleWCF.RoleID      = _aGGroupRole.RoleID;

                aGGroupRoleCollection.Add(_aGGroupRoleWCF);
            }
            return(aGGroupRoleCollection);
        }
Example #3
0
        /// <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 AGGroupRole</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 AGGroupRole in the form of an object of class AGGroupRoleCollection</returns>
        public AGGroupRoleCollection SelectByFieldPaged(string field, object fieldValue, object fieldValue2, TypeOperation typeOperation, int pageSize, int skipPages, string orderByStatement)
        {
            AGGroupRoleCollection aGGroupRoleCollection = new AGGroupRoleCollection();

            foreach (POS.DataLayer.AGGroupRole _aGGroupRole in POS.DataLayer.AGGroupRoleBase.SelectByFieldPaged(field, fieldValue, fieldValue2, typeOperation, pageSize, skipPages, orderByStatement))
            {
                _aGGroupRoleWCF = new AGGroupRole();

                _aGGroupRoleWCF.GroupRoleID = _aGGroupRole.GroupRoleID;
                _aGGroupRoleWCF.GroupID     = _aGGroupRole.GroupID;
                _aGGroupRoleWCF.RoleID      = _aGGroupRole.RoleID;

                aGGroupRoleCollection.Add(_aGGroupRoleWCF);
            }
            return(aGGroupRoleCollection);
        }
Example #4
0
        /// <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 AGGroupRole</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 AGGroupRole in the form of an object of class AGGroupRoleCollection</returns>
        public AGGroupRoleCollection SelectByField(string field, object fieldValue, object fieldValue2, TypeOperation typeOperation)
        {
            AGGroupRoleCollection aGGroupRoleCollection = new AGGroupRoleCollection();

            foreach (POS.DataLayer.AGGroupRole _aGGroupRole in POS.DataLayer.AGGroupRoleBase.SelectByField(field, fieldValue, fieldValue2, typeOperation))
            {
                _aGGroupRoleWCF = new AGGroupRole();

                _aGGroupRoleWCF.GroupRoleID = _aGGroupRole.GroupRoleID;
                _aGGroupRoleWCF.GroupID     = _aGGroupRole.GroupID;
                _aGGroupRoleWCF.RoleID      = _aGGroupRole.RoleID;

                aGGroupRoleCollection.Add(_aGGroupRoleWCF);
            }
            return(aGGroupRoleCollection);
        }