Created
October 27, 2021 14:26
-
-
Save AhmedTarekHasan/c6e34326a2a1a0a658e6896c198de020 to your computer and use it in GitHub Desktop.
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 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