Prev | Current Page 140 | Next

Satheesh, N Kumar

"LINQ Quickly"

_Categories.Entity; }
set { this._Categories.Entity = value; }
}
public Items() { this._Categories = new
EntityRef(); }
Chapter 4
[ 87 ]
You can see the EntitySet private variable, which refers to the detail, entity
class Items. The definition for the entity set has the association attribute added to it.
This attribute has the property, OtherKey, added to it. It refers to the primary key in
the database table which corresponds to this entity class, and is compared with the
related entity class. There is also a property called ThisKey which refers to the key
field in the current table. If not specified, it automatically refers to the primary key of
the table.
The Items table, will refer back to the Categories table using the EntityRef class.
The association attribute of the Categories property has the ThisKey attribute
which refers to column on this entity class. The attribute also has a property called
Storage that shows which private member holds the value of the property.


Pages:
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
dieta light życzenia wierszyki Kapitalne mieszkania do wynajęcia Warszawa pozycjonowanie