Skip to content

Commit

Permalink
Better formatting of special attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
shrayasr committed Jun 9, 2015
1 parent c173875 commit b2a3fbc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dapper.Contrib/Readme.md
Expand Up @@ -111,7 +111,8 @@ Special Attributes
----------
Dapper.Contrib makes use of some optional attributes:

* Table("Tablename") - use another table name instead of the name of the class
* `[Table("Tablename")]` - use another table name instead of the name of the class

```csharp
[Table ("emps")]
public class Employee
Expand All @@ -120,7 +121,7 @@ Dapper.Contrib makes use of some optional attributes:
public string Name { get; set; }
}
```
* Key - this property is the identity/key (unless it is named "Id")
* Write(true/false) - this property is (not) writeable
* Computed - this property is computed and should not be part of updates
* `[Key]` - this property is the identity/key (unless it is named "Id")
* `[Write(true/false)]` - this property is (not) writeable
* `[Computed]` - this property is computed and should not be part of updates

0 comments on commit b2a3fbc

Please sign in to comment.