Sunday, September 18, 2016

Inner join in linq c#

public List<data>GetData()
        {

            return (
                from ud in dbcontext.userdetails
                join td in dbcontext.taskdetails
                on new
                {
                  uid =   ud.uid ,
                }
                equals new
                {
                 uid =  td.uid.Value ,
                }
                select new data
                {
                    name = td.name,
                    amount = td.amount
                }

                ).ToList();
        }      


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...