Profile cover photo
Profile photo
Pawan Awasthi
285 followers
285 followers
About
Pawan's posts

I am trying to do something using the C# console application. By now I am able to create the Server as well as client and also can connect the server to client. But not able to retrieve the database content like the collections and all.
I want to get the list of the records which are in the database and then I can use the Linq or Lambda expression to filter and query the records.
As I am trying with the Visual Studio and new to this, so getting the issue. I tried to learn from other websites and links but still didn't get the proper solution as most of the places, I can see peoples are just setting the records and then getting them from the cache. But in my case, I already have the database and I need to filter the records from the database.
I am using the below code snippet after installing all the necessary references:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServiceStack.Redis;
using ServiceStack.Redis.Generic;
namespace RedisDemoApp
{
class Program
{
static void Main(string[] args)
{
using (var redisClient = new RedisClient("127.0.0.1", 6391))
{
IRedisTypedClient<Hotel> redis = redisClient.As<Hotel>();
IRedisList<Hotel> mostSelling = redis.Lists["urn:hotel_ids"];// not working
.......
}
}
}
}
Its urgent. Let me know if anyone can help me. Much appreciated.

Post has attachment
Most Interesting Questions in C#, ASP.Net and SQL Server, WCF, ASP.Net MVC
Hello Guys, In this article, we willsee the most interesting questions in Microsoft technlologies like in C#, ASP.Net, Sql Server, WCF services, ASP.Net MVC. 1. I have logged in to the ASP.Net website using my credential for the login page.Now I want that w...

Post has attachment
Most Interesting Questions in C#, ASP.Net and SQL Server, WCF, ASP.Net MVC
Hello Guys, In this article, we willsee the most interesting questions in Microsoft technlologies like in C#, ASP.Net, Sql Server, WCF services, ASP.Net MVC. 1. I have logged in to the ASP.Net website using my credential for the login page.Now I want that w...

Post has attachment
Most Confusing Questions in .Net, C#.Net, ASP.Net and Sql Server
Hi Friends, This post is regarding the Most Confusing
Questions in .Net, C#.Net, ASP.Net and Sql Server. As I have seen that lot of
people whether they are searching for jobs, already in the job or they try to
understand the things, gets lot of confusions a...

Post has attachment

Post has attachment
Photo

Post has attachment
2+ yrs Experience .Net related Interview Questions and Answers for Quick Reference

Post has attachment
ASP.Net MVC related questions

Post has attachment
Creating application using ASP.Net MVC 5 with Visual Studio 2013 (Code First Approach)

Post has attachment
Wait while more posts are being loaded