Ejemplo n.º 1
0
        protected override void AddLinkedAccountClaim(LinkedAccountClaim item)
        {
            var linkedAccountClaim = new NhLinkedAccountClaim();

            linkedAccountClaim.GetType()
            .GetProperty("ProviderAccountID")
            .SetValue(linkedAccountClaim, item.ProviderAccountID);
            linkedAccountClaim.GetType().GetProperty("ProviderName").SetValue(linkedAccountClaim, item.ProviderName);
            linkedAccountClaim.GetType().GetProperty("Type").SetValue(linkedAccountClaim, item.Type);
            linkedAccountClaim.GetType().GetProperty("Value").SetValue(linkedAccountClaim, item.Value);
            linkedAccountClaim.GetType().GetProperty("Account").SetValue(linkedAccountClaim, this);
            this.LinkedAccountClaimsCollection.Add(linkedAccountClaim);
        }
 protected override void AddLinkedAccountClaim(LinkedAccountClaim item)
 {
     var linkedAccountClaim = new NhLinkedAccountClaim();
     linkedAccountClaim.GetType()
         .GetProperty("ProviderAccountID")
         .SetValue(linkedAccountClaim, item.ProviderAccountID);
     linkedAccountClaim.GetType().GetProperty("ProviderName").SetValue(linkedAccountClaim, item.ProviderName);
     linkedAccountClaim.GetType().GetProperty("Type").SetValue(linkedAccountClaim, item.Type);
     linkedAccountClaim.GetType().GetProperty("Value").SetValue(linkedAccountClaim, item.Value);
     linkedAccountClaim.GetType().GetProperty("Account").SetValue(linkedAccountClaim, this);
     this.LinkedAccountClaimsCollection.Add(linkedAccountClaim);
 }