PageRenderTime 350ms CodeModel.GetById 161ms app.highlight 2ms RepoModel.GetById 186ms app.codeStats 0ms

/TimeSheetReporting/TimeSheetReporting/Helper/MemberListProvider.cs

#
C# | 37 lines | 35 code | 2 blank | 0 comment | 0 complexity | 6dcedb3b11364bcb793b2afaf169bf05 MD5 | raw file
 1using System;
 2using System.Net;
 3using System.Windows;
 4using System.Windows.Controls;
 5using System.Windows.Documents;
 6using System.Windows.Ink;
 7using System.Windows.Input;
 8using System.Windows.Media;
 9using System.Windows.Media.Animation;
10using System.Windows.Shapes;
11using TimeSheetReporting.Web.Service;
12using TimeSheetReporting.Web.Model;
13using System.Windows.Ria;
14
15namespace TimeSheetReporting.Helper
16{
17    public class MemberListProvider
18    {
19        TimeSheetContext _dc;
20        public TimeSheetContext DomainContext
21        {
22            set 
23            {
24                _dc = value;
25                _dc.Load<Member>(_dc.GetMemberQuery());
26            }          
27        }
28
29        public EntitySet<Member> MemberList
30        {
31            get
32            {
33                return _dc.Members;
34            }
35        }
36    }
37}