tags:

views:

1468

answers:

3

as I've excluded "ID", how can i exclude another attribute?

+13  A: 

Exclude takes a comma-separated list of attributes. When parsed it also trims the inputs so you can use whitespace to make it more readable.

Example:

[Bind(Exclude="ID, Name")]
tvanfosson
+2  A: 

[Bind(Exclude="ID,Second")]

ccook
+2  A: 

Try delimiting the attributes you want to exclude with commas, e.g.

[Bind(Exclude="ID,Name")]
Lee D