■ LinqServerModeSource 클래스를 사용하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 |
namespace DevExpress.Data.Linq this.gridControl.ItemsSource = new LinqServerModeSource() { ElementType = typeof(Product), KeyExpression = "ProductID", QueryableSource = new NorthwindEntities().Products }; |
※ NorthwindEntities, Product 클래스는 Entity Framework에서 정의된 것이다.