Skip to content

Instantly share code, notes, and snippets.

@tonysneed
Created October 1, 2017 00:57
Show Gist options
  • Save tonysneed/2d2165d336c08032dd7b11ffac397d5d to your computer and use it in GitHub Desktop.
Save tonysneed/2d2165d336c08032dd7b11ffac397d5d to your computer and use it in GitHub Desktop.
public class Product : ITrackable, IMergeable
{
public int ProductId { get; set; }
public string ProductName { get; set; }
public int? CategoryId { get; set; }
public decimal? UnitPrice { get; set; }
public bool Discontinued { get; set; }
public byte[] RowVersion { get; set; }
public Category Category { get; set; }
[NotMapped]
public TrackingState TrackingState { get; set; }
[NotMapped]
public ICollection<string> ModifiedProperties { get; set; }
[NotMapped]
public Guid EntityIdentifier { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment