تخطَّ إلى المحتوى

Dto suffix casing (ARCH005)

هذا المحتوى غير متوفر بلغتك بعد.

Key dotnet.naming.dto-suffix-casing · Severity warning · Category naming

The DTO suffix should be written as PascalCase Dto in type and variable names; variants like DTO or dto should be avoided.

public class OrderDTO
{
public int Id { get; set; }
}
public class OrderDto
{
public int Id { get; set; }
}

Rename so the suffix is PascalCase Dto. If needed, suppress the rule per project/workspace via except/ignore.