-
Dapper
- Getting Started
- Methods
- Parameters
- Result
- Utilities
-
Dapper Plus
- Getting Started
- Methods
-
Dapper Transaction
- Getting Started
-
Dapper Contrib
- Getting Started
- Methods
- Data Annotations
Dapper Tutorial Dapper Contrib - Data Annotation - Write
Description
Specifie if the property is writable or not.
[Table("Invoice")] public class InvoiceContrib { [Key] public int InvoiceID { get; set; } public string Code { get; set; } public InvoiceKind Kind { get; set; } [Write(false)] [Computed] public string FakeProperty { get; set; } } using (var connection = My.ConnectionFactory()) { connection.Open(); var invoice = connection.Get<InvoiceContrib>(1); // The FakeProperty is null }