Esempio n. 1
0
		/// <summary>
		/// This method will return an object representing the record matching the primary key information specified.
		/// </summary>
		///
		/// <param name="pk" type="ADRolePrimaryKey">Primary Key information based on which data is to be fetched.</param>
		///
		/// <returns>object of class ADRole</returns>
		public ADRole SelectOne(ADRolePrimaryKey pk)
		{
			_aDRoleWCF = new ADRole();
			_aDRole = POS.DataLayer.ADRoleBase.SelectOne(new POS.DataLayer.ADRolePrimaryKey(pk.RoleID));
			
				_aDRoleWCF.RoleID = _aDRole.RoleID;
				_aDRoleWCF.RoleName = _aDRole.RoleName;
				_aDRoleWCF.RolePath = _aDRole.RolePath;
				_aDRoleWCF.MenuButton = _aDRole.MenuButton;
				
			return _aDRoleWCF;
		}
Esempio n. 2
0
		///<summary>
		///This method will Delete the object from the database
		///</summary>
		///<param name="pk" type="ADRolePrimaryKey">Primary Key information based on which data is to be fetched.</param>
		/// <returns>True if succeeded</returns>
		public bool Delete(ADRolePrimaryKey pk)
		{
			return POS.DataLayer.ADRoleBase.Delete(new POS.DataLayer.ADRolePrimaryKey(pk.RoleID));
		}