Commit b2a3fbc7 authored by Shrayas Rajagopal's avatar Shrayas Rajagopal

Better formatting of special attributes

parent c1738753
...@@ -111,7 +111,8 @@ Special Attributes ...@@ -111,7 +111,8 @@ Special Attributes
---------- ----------
Dapper.Contrib makes use of some optional 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 ```csharp
[Table ("emps")] [Table ("emps")]
public class Employee public class Employee
...@@ -120,7 +121,7 @@ Dapper.Contrib makes use of some optional attributes: ...@@ -120,7 +121,7 @@ Dapper.Contrib makes use of some optional attributes:
public string Name { get; set; } public string Name { get; set; }
} }
``` ```
* Key - this property is the identity/key (unless it is named "Id") * `[Key]` - this property is the identity/key (unless it is named "Id")
* Write(true/false) - this property is (not) writeable * `[Write(true/false)]` - this property is (not) writeable
* Computed - this property is computed and should not be part of updates * `[Computed]` - this property is computed and should not be part of updates
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment