コード例 #1
0
ファイル: AccountRole.cs プロジェクト: SokolSib/FRANCE
 public static void SetXmlValues(XContainer element, AccountRole obj)
 {
     element.GetXElement("CustomerId").SetValue(obj.CustomerId);
     element.GetXElement("RoleName").SetValue(obj.RoleName);
     element.GetXElement("Privelegies").SetValue(obj.PrivelegiesText);
 }
コード例 #2
0
ファイル: AccountRole.cs プロジェクト: SokolSib/FRANCE
 public static XElement ToXElement(AccountRole obj)
 {
     return(new XElement("rec", new XElement("CustomerId", obj.CustomerId), new XElement("RoleName", obj.RoleName), new XElement("Privelegies", obj.PrivelegiesText)));
 }