-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmployeeDataSource.cs
More file actions
42 lines (39 loc) · 1.25 KB
/
EmployeeDataSource.cs
File metadata and controls
42 lines (39 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#region dataSourceUsings
using System.Collections.Generic;
#endregion
namespace Reporting_Create_Report_Parameter_with_Predefined_Dynamic_Values {
#region DataSource
public class Employee {
public string Name { get; set; }
public string Position { get; set; }
}
public class EmployeeDataSource {
private List<Employee> employees = new List<Employee>() {
new Employee() {
Name = "Antonio Moreno",
Position = "CEO"
},
new Employee() {
Name = "Thomas Hardy",
Position = "Sales Representative"
},
new Employee() {
Name = "Christina Berglund",
Position = "Order Administrator"
},
new Employee() {
Name = "Frédérique Citeaux",
Position = "Marketing Manager"
},
new Employee() {
Name = "Hanna Moos",
Position = "Software Developer"
}
};
public IEnumerable<Employee> GetEmployeeList() {
foreach (var employee in employees)
yield return employee;
}
}
#endregion
}