Skip to content

Commit

Permalink
Make base type query return derived type instances
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent He authored and chinadragon0515 committed May 25, 2016
1 parent 9a32166 commit 0596ad7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,23 +435,25 @@ public static void ResetDataSource()
BirthDateTime = new DateTime(1992, 8, 3, 16, 52, 8),
FavoriteFeature = Feature.Feature3,
},
new Person
new Employee
{
PersonId = 12,
FirstName = "Sallie",
LastName = "Sampson",
UserName = "salliesampson",
Cost = 1000000,
BirthDate = new DateTime(1993, 9, 2),
BirthTime = new TimeSpan(15, 51, 9),
BirthDateTime = new DateTime(1993, 9, 2, 15, 51, 9),
FavoriteFeature = Feature.Feature4,
},
new Person
new Manager
{
PersonId = 13,
FirstName = "Joni",
LastName = "Rosales",
UserName = "jonirosales",
Budget = 60000000,
BirthDate = new DateTime(1994, 10, 1),
BirthTime = new TimeSpan(14, 50, 10),
BirthDateTime = new DateTime(1994, 10, 1, 14, 50, 10),
Expand Down

0 comments on commit 0596ad7

Please sign in to comment.