private void initDataSource() { DataSource = new LinqInstantFeedbackDataSource() { QueryableSource = _dc.CustomerView, KeyExpression = "CustomerID", DefaultSorting = "LastName ASC, FirstName ASC, MiddleName ASC, BirthDate ASC" }; RaisePropertyChanged("DataSource"); }
private void initDataSource() { DataSource = new LinqInstantFeedbackDataSource() { QueryableSource = _dc.FinancialTransactionView, KeyExpression = "ID", DefaultSorting = "ID DESC" }; RaisePropertyChanged("DataSource"); }
private void initDataSource() { DataSource = new LinqInstantFeedbackDataSource() { QueryableSource = _dc.AppointmentView, KeyExpression = "AppointmentID", DefaultSorting = "AppointmentID DESC" }; RaisePropertyChanged("DataSource"); }
private void initDataSource() { _ds = new LinqInstantFeedbackDataSource(); var dc = new ORM.FPMDataContext(); dc.ObjectTrackingEnabled = false; _ds.QueryableSource = dc.ProjectPivotView.Where(x => x.DeadLine >= DateFrom && x.DeadLine <= DateTo.AddDays(1).AddMinutes(-1)); _ds.KeyExpression = "ProjectID"; _ds.DefaultSorting = "DeadLine DESC"; OnPropertyChanged("DataSource"); }