public T FindEntity <T>(string where, params object[] args) where T : class
 {
     return(DbProvider.FirstOrDefault <T>(where, args));
 }
        public UserInfoView GetUserInfo(string account)
        {
            string sql = "select * from userinfo Where UserCount = @0";

            return(DbProvider.FirstOrDefault <UserInfoView>(sql, account));
        }
示例#3
0
 public T FindEntity(string sqlWhere, params object[] args)
 {
     return(DbProvider.FirstOrDefault <T>(sqlWhere, args));
 }