Ejemplo n.º 1
0
 private void initDataSource()
 {
     DataSource = new LinqInstantFeedbackDataSource()
     {
         QueryableSource = _dc.CustomerView,
         KeyExpression   = "CustomerID",
         DefaultSorting  = "LastName ASC, FirstName ASC, MiddleName ASC, BirthDate ASC"
     };
     RaisePropertyChanged("DataSource");
 }
Ejemplo n.º 2
0
 private void initDataSource()
 {
     DataSource = new LinqInstantFeedbackDataSource()
     {
         QueryableSource = _dc.FinancialTransactionView,
         KeyExpression   = "ID",
         DefaultSorting  = "ID DESC"
     };
     RaisePropertyChanged("DataSource");
 }
Ejemplo n.º 3
0
 private void initDataSource()
 {
     DataSource = new LinqInstantFeedbackDataSource()
     {
         QueryableSource = _dc.AppointmentView,
         KeyExpression   = "AppointmentID",
         DefaultSorting  = "AppointmentID DESC"
     };
     RaisePropertyChanged("DataSource");
 }
Ejemplo n.º 4
0
        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");
        }