/// <summary> /// 根据ID查询 /// </summary> /// Author : 俞立钢 /// Company : 绍兴标点电子技术有限公司 /// Created : 2014-10-20 10:08:36 public static BaseInfo SelectBaseInfo(int id) { string sql = string.Format("select * from Base_Info where Id={0}", id); return(SqLiteHelper.GetEnumerable <BaseInfo>(sql)); }
/// <summary> /// 查询 /// </summary> /// Author : 俞立钢 /// Company : 绍兴标点电子技术有限公司 /// Created : 2014-10-20 13:24:10 public static BaseInfo SelectBaseInfo() { string sql = string.Format("select * from Base_Info limit 1"); return(SqLiteHelper.GetEnumerable <BaseInfo>(sql)); }
/// <summary> /// 查询 /// </summary> /// <param name="userName">微信帐号</param> /// Author : 俞立钢 /// Company : 绍兴标点电子技术有限公司 /// Created : 2014-10-23 16:27:44 public static BaseInfo SelectBaseInfo(string userName) { string sql = string.Format("select * from Base_Info where UserName='******'", userName); return(SqLiteHelper.GetEnumerable <BaseInfo>(sql)); }