/// <summary> /// This method will return an object representing the record matching the primary key information specified. /// </summary> /// /// <param name="pk" type="VUserRolePrimaryKey">Primary Key information based on which data is to be fetched.</param> /// /// <returns>object of class VUserRole</returns> public VUserRole SelectOne(VUserRolePrimaryKey pk) { _vUserRoleWCF = new VUserRole(); _vUserRole = POS.DataLayer.VUserRoleBase.SelectOne(new POS.DataLayer.VUserRolePrimaryKey(pk.UserID, pk.GroupID, pk.Expr1)); _vUserRoleWCF.UserID = _vUserRole.UserID; _vUserRoleWCF.GroupID = _vUserRole.GroupID; _vUserRoleWCF.GroupName = _vUserRole.GroupName; _vUserRoleWCF.RoleName = _vUserRole.RoleName; _vUserRoleWCF.RolePath = _vUserRole.RolePath; _vUserRoleWCF.Expr1 = _vUserRole.Expr1; return(_vUserRoleWCF); }
///<summary> ///This method will Delete the object from the database ///</summary> ///<param name="pk" type="VUserRolePrimaryKey">Primary Key information based on which data is to be fetched.</param> /// <returns>True if succeeded</returns> public bool Delete(VUserRolePrimaryKey pk) { return(POS.DataLayer.VUserRoleBase.Delete(new POS.DataLayer.VUserRolePrimaryKey(pk.UserID, pk.GroupID, pk.Expr1))); }