Esempio n. 1
0
		public void FromIQueryable()
		{
			using (var db = new EntityFrameworkDemoEntities())
			{
				EntityFrameworkDbContextApprovals.Verify(db, CreateCompanyLoaderByName2(db, "Mic"));
			}
		}
Esempio n. 2
0
 public void FromIQueryable()
 {
     using (var db = new EntityFrameworkDemoEntities())
     {
         EntityFrameworkDbContextApprovals.Verify(db, CreateCompanyLoaderByName2(db, "Mic"));
     }
 }
Esempio n. 3
0
		private IQueryable<Company> CreateCompanyLoaderByName2(EntityFrameworkDemoEntities db, string name)
		{
			return (from c in db.Companies
			        where c.Name.StartsWith(name)
			        select c).Take(10);
		}
Esempio n. 4
0
 private IQueryable <Company> CreateCompanyLoaderByName2(EntityFrameworkDemoEntities db, string name)
 {
     return((from c in db.Companies
             where c.Name.StartsWith(name)
             select c).Take(10));
 }