public SystemConfiguration QueryByName(string name) { var orgService = ContextContainer.GetValue <IOrganizationService>(ContextTypes.OrgService); var strFetch = string.Format(@"<fetch version=""1.0"" output-format=""xml-platform"" mapping=""logical"" distinct=""false""> <entity name=""{0}_systemconfiguration""> <attribute name=""{0}_content"" /> <filter type=""and""> <condition attribute=""{0}_name"" operator=""eq"" value=""{1}"" /> </filter> </entity> </fetch>", PASolutionInfomation.CommonEntityPrefix, name.ToXML()); return(PAEntityQueryHelper.Retrive <SystemConfiguration>(strFetch)); }
public PAWebResource QueryByName(string name) { var orgService = ContextContainer.GetValue <IOrganizationService>(ContextTypes.OrgService); var strFetch = string.Format(@"<fetch version=""1.0"" output-format=""xml-platform"" mapping=""logical"" distinct=""false""> <entity name=""webresource""> <attribute name=""content"" /> <attribute name=""languagecode"" /> <attribute name=""webresourcetype"" /> <filter type=""and""> <condition attribute=""name"" operator=""eq"" value=""{0}"" /> </filter> </entity> </fetch>", name.ToXML()); return(PAEntityQueryHelper.Retrive <PAWebResource>(strFetch)); }
public PAUser QueryByID(Guid id) { string strFetch = string.Format(@"<fetch version=""1.0"" output-format=""xml-platform"" mapping=""logical"" distinct=""false"" > <entity name = ""systemuser""> <attribute name = ""businessunitid"" /> <attribute name = ""systemuserid"" /> <attribute name = ""internalemailaddress"" /> <attribute name=""domainname"" /> <attribute name=""isdisabled"" /> <filter type = ""and"" > <condition attribute=""systemuserid"" operator=""eq"" uitype=""systemuser"" value=""{0}"" /> </filter > </entity > </fetch> ", id); return(PAEntityQueryHelper.Retrive <PAUser>(strFetch)); }
public PAEntity Query(string strFetch) { return(PAEntityQueryHelper.Retrive <PAEntity>(strFetch)); }