New rule S3363 (VB.NET): Date and time should not be used as types for primary keys #7490
Closed
2 tasks done
Labels
Area: VB.NET
VB.NET rules related issues.
Type: New Rule
Implementation for a rule that HAS been specified.
Milestone
Implement new rule S3363:
DateTime
andDateTimeOffset
types should not be used as primary keys.The rule raises an issue if: Entity Framework, or Entity Framework Core dependencies are found and a class contains a property of temporal type (
DateTime
,DateTimeOffset
, etc.) that is either namedId
,<type name>Id
or decorated by the[Key]
or[PrimaryKey]
attribute.The text was updated successfully, but these errors were encountered: