Skip to content

Commit

Permalink
Update DAP043.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mgravell authored Nov 20, 2023
1 parent fb740ea commit 0294ec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/DAP043.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DAP043

If you are looking at `DAP043`, then most probably you wanted to use [[Column]](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.schema.columnattribute)
If you are looking at `DAP043`, then most probably you wanted to use [`[Column]`](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.schema.columnattribute)
attribute to override the name of the type member.

However, due to [historical reasons](https://stackoverflow.com/a/77073456) you need to add a "marker attribute" `[UseColumnAttribute]`
Expand All @@ -25,4 +25,4 @@ class MyType
[Column("MyOtherName")]
public int MyThisName { get; set; }
}
```
```

0 comments on commit 0294ec2

Please sign in to comment.