tags:

views:

21

answers:

1

I was looking at a dbml file in xml editor and noticed that some of the properties had a storage field and some did not. I also noticed that some had name, which I assuming is the name of the field in sql. If the property in the dbml file has a different name from the one in sql, it will add the member attribute. I don't understand why some fields have a storage attribute and some do not?

+1  A: 

From MSDN

**DataAttribute.Storage Property**
Gets or sets a private storage field to hold the value from a column.

Have a look here

Tony
Thanks. I understand the purpose, but I don't understand why some fields had the attribute and some did not?
Xaisoft