日期:2014-05-17 浏览次数:20890 次
/// <summary>
/// 类定义
/// </summary>
public class User
{
public int userid { get; set; }
public string username { get; set; }
public string mail { get; set; }
public string mobile { get; set; }
public User(int userid)
{
this.userid = userid;
}
public void Get()
{
using (BirthdayDataClassesDataContext db = new BirthdayDataClassesDataContext())
{
TableA result = (from u in db.TableA
where u.userid == this.userid
select u).FirstOrDefault();
if (result != null)
{
PropertyInfo[] pros = typeof(TableA).GetProperties();
fore