-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
390 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
Source/Tests/TrackableEntities.EF.5.Tests/NorthwindModels/HolidayPromo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
|
||
namespace TrackableEntities.EF.Tests.NorthwindModels | ||
{ | ||
public partial class HolidayPromo : Promo, ITrackable | ||
{ | ||
public string HolidayName { get; set; } | ||
|
||
[NotMapped] | ||
public TrackingState TrackingState { get; set; } | ||
[NotMapped] | ||
public ICollection<string> ModifiedProperties { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
Source/Tests/TrackableEntities.EF.5.Tests/NorthwindModels/ProductInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
|
||
namespace TrackableEntities.EF.Tests.NorthwindModels | ||
{ | ||
public partial class ProductInfo : ITrackable | ||
{ | ||
[Key, Column(Order = 1)] | ||
public int ProductInfoKey1 { get; set; } | ||
[Key, Column(Order = 2)] | ||
public int ProductInfoKey2 { get; set; } | ||
|
||
public string Info { get; set; } | ||
|
||
[NotMapped] | ||
public TrackingState TrackingState { get; set; } | ||
[NotMapped] | ||
public ICollection<string> ModifiedProperties { get; set; } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
Source/Tests/TrackableEntities.EF.5.Tests/NorthwindModels/Promo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
|
||
namespace TrackableEntities.EF.Tests.NorthwindModels | ||
{ | ||
public partial class Promo | ||
{ | ||
[Key] | ||
public int PromoId { get; set; } | ||
public string PromoCode { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.