Skip to content

Instantly share code, notes, and snippets.

@AhmedTarekHasan
Created October 27, 2021 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AhmedTarekHasan/c6e34326a2a1a0a658e6896c198de020 to your computer and use it in GitHub Desktop.
Save AhmedTarekHasan/c6e34326a2a1a0a658e6896c198de020 to your computer and use it in GitHub Desktop.
// This class is representing the simple entity we are going to use
// in our example.
public class Data
{
public int DataId { get; set; }
public string DataDescription { get; set; }
}
// This class is the first kind of the parent Data class.
public class EmployeeData : Data
{
public string EmployeeName { get; set; }
}
// This class is the second kind of the parent Data class.
public class AssetData : Data
{
public int AssetId { get; set; }
public string AssetName { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment