This attribute has two properties:
1. Name??”specifies the name of the parameter, stored in a procedure or a
function in the database. If not specified, the parameter is assumed to have
the same name as the method parameter. In the example given under the
stored procedure attribute section, the method has the parameter attribute
with the name as Category and the method has a parameter Category.
2. DbType??”this is to specify the type of the parameter. If not specified, it will be
translated according to the type specified by the method parameter.
Inheritance Mapping Attribute
This represents the inheritance hierarchy for the entity classes. Classes can inherit
from another class. Inherited classes, or derived classes, take advantage of gaining
all the non-private data and characteristics of the base class they are derived from.
A derived class also includes its own data and characteristics. Now the derived class
can be represented by its own type as well as by base class type. Following is an
example for inheriting a class from a base class.
Pages:
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154