Example #1
0
 public void GetUsers()
 {
     repoUsers = uow.Repository<Users>();
     var lst = from r in repoUsers.AsNoTracking()
               where r.UserName == "sai"
               select r;
 }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            uow = new UnitOfWork(context);
            repoUsers = uow.Repository<Users>();
            IQueryable<Users> lst = from r in repoUsers.AsNoTracking()
                      where r.UserName == "sai"
                      select r;

            foreach (Users user in lst)
            {

            }
        }