c# - Simple User Class Assignment
<p>this is a newbie question, i am trying to build a class in C# that is going to set the user org property for a user (each user can have more than 1)</p>

<p>i have this thus far:</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Data;

/// &lt;summary&gt;
/// Summary description for clsRepUser
/// &lt;/summary&gt;
public class clsUser
{

    private string userid;
    private List&lt;string&gt; userorgs;

    public string UserID
    {
        get
        {
            return userid;
        }
        set
        {
            userid = value;
        }
    }

    public List&lt;string&gt; UserOrgs
    {
        get
        {
            return userorgs;
        }
        set
        {
            userorgs = value;
        }
    }



    clsConn cCon = new clsConn();
    String connStr = "";
    public clsUser()
    {

    }

    public DataSet GetUserOrg(string UserID)
    {

        DataSet ds = new DataSet();
        SqlConnection conn = new SqlConnection(cCon.getConn());

        SqlCommand cmd = new SqlCommand("sp_getUserOrgs", conn);

        // 2. set the command object so it knows
        // to execute a stored procedure
        cmd.CommandType = CommandType.StoredProcedure;

        // 3. add parameter to command, which
        // will be passed to the stored procedure
        cmd.Parameters.Add(
            new SqlParameter("@UserID", UserID));

       try {
        // Open the connection and execute the Command
        conn.Open();
        SqlDataAdapter sqlDA = new SqlDataAdapter();

        sqlDA.SelectCommand = cmd;
        sqlDA.Fill(ds);
        } 
       catch (Exception ex) {
            } 
       finally {
        conn.Close();
            }

        return ds;

    }

}
</code></pre>

<p>how do i now populate the userorgs property of that user from the GetUserOrg function? or am i way off on this?</p>
