/TimeSheetReporting/TimeSheetReporting/Helper/ProjectListProvider.cs
C# | 37 lines | 35 code | 2 blank | 0 comment | 0 complexity | 08dad74d6b08434d3198b5066564eb7c MD5 | raw file
- using System;
- using System.Net;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Documents;
- using System.Windows.Ink;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Animation;
- using System.Windows.Shapes;
- using TimeSheetReporting.Web.Service;
- using TimeSheetReporting.Web.Model;
- using System.Windows.Ria;
-
- namespace TimeSheetReporting.Helper
- {
- public class ProjectListProvider
- {
- TimeSheetContext _dc;
- public TimeSheetContext DomainContext
- {
- set
- {
- _dc = value;
- _dc.Load<Project>(_dc.GetProjectQuery());
- }
- }
-
- public EntitySet<Project> ProjectList
- {
- get
- {
- return _dc.Projects;
- }
- }
- }
- }