IIwbEntityDto.cs 511 B

123456789101112131415161718192021222324
  1. namespace IwbZero.AppServiceBase
  2. {
  3. public interface IIwbEntityDto<TPrimaryKey>
  4. where TPrimaryKey : struct
  5. {
  6. TPrimaryKey? Id { get; set; }
  7. }
  8. public class IwbEntityDto<TPrimaryKey> : IIwbEntityDto<TPrimaryKey>
  9. where TPrimaryKey : struct
  10. {
  11. public TPrimaryKey? Id { get; set; }
  12. }
  13. public interface IIwbEntityDto
  14. {
  15. string Id { get; set; }
  16. }
  17. public class IwbEntityDto : IIwbEntityDto
  18. {
  19. public string Id { get; set; }
  20. }
  21. }