I'm using MVC to allow login via LDAP. I'm able to login with a method similar to the one usedhere. The thing is, I want to store some of those fields. Here's a sample of what I have so far :
if ((resultEmployee.Properties["givenname"].Count > 0)) { profile.GivenName = resultEmployee.Properties["givenname"][0].ToString(); }
How do I then store a string in the SQL database table?