Saturday, September 17, 2016

To find the count of an id in the table based on where condition


public int count()
        {
            int count = (from s in dbcontext.taskdetails
                         where s.tid == 1
                         select s.tid).Count();
            return count;

        }

No comments:

Post a Comment

Git Commands

Git Version   To check the git version Git -v       Git Clone To clone the repository, use the following command: Git clone [u...