SalesOrder。
<Entity Name="SalesOrder">
<Properties>
<Property Name="Title" Type="System.String">salesordernumber</Property>
</Properties>
<Identifiers>
<Identifier Name="SalesOrderID" TypeName="System.Int32"/>
</Identifiers>
<Methods>
<Method Name="GetSalesOrders">
<Properties>
<Property Name="RdbCommandText" Type="System.String">
SELECT
soh.salesorderid,
soh.orderdate,
soh.shipdate,
soh.status,
soh.salesordernumber,
soh.customerid
FROM
sales.salesorderheader soh
inner join sales.customer c
on soh.customerid = c.customerid
WHERE
c.customertype = 'i'
AND (soh.salesorderid > @minSalesOrderID AND
soh.salesorderid < @maxSalesOrderID)
</Property>
<Property Name="RdbCommandType" Type="System.String">Text</Property>
</Properties>
<Parameters>
<Parameter Direction="In" Name="@minSalesOrderID">
<TypeDescriptor TypeName="System.Int32" Name="SalesOrderID"
IdentifierName="SalesOrderID">
<DefaultValues>
<DefaultValue MethodInstanceName=
"SalesOrderFinderInstance" Type="System.Int32">0
</DefaultValue>
<DefaultValue MethodInstanceName=
"SalesOrderSpecificFinderInstance" Type="System.Int32">0
</DefaultValue>
</DefaultValues>
</TypeDescriptor>
</Parameter>
<Parameter Direction="In" Name="@maxSalesOrderID">
<TypeDescriptor TypeName="System.Int32" Name="SalesOrderID"
IdentifierName="SalesOrderID">
<DefaultValues>
<DefaultValue MethodInstanceName=
"SalesOrderFinderInstance" Type="System.Int32">
9999999</DefaultValue>
<DefaultValue MethodInstanceName=
"SalesOrderSpecificFinderInstance" Type="System.Int32">
9999999</DefaultValue>
</DefaultValues>
</TypeDescriptor>
</Parameter>
<Parameter Direction="Return" Name="SalesOrders">
<TypeDescriptor TypeName="System.Data.IDataReader, System.Data,
Version=2.0.3600.0, Culture=neutral, PublicKeyToken=
b77a5c561934e089" IsCollection="true" Name="SalesOrderDataReader">
<TypeDescriptors>
<TypeDescriptor TypeName="System.Data.IDataRecord, System.Data,
Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
Name="SalesOrderDataRecord">
<TypeDescriptors>
<TypeDescriptor TypeName="System.Int32" IdentifierName=
"SalesOrderID" Name="SalesOrderID" />
<TypeDescriptor TypeName="System.DateTime" Name="orderdate" />
<TypeDescriptor TypeName="System.DateTime" Name="shipdate" />
<TypeDescriptor TypeName="System.String" Name="status" />
<TypeDescriptor TypeName="System.String" Name="salesordernumber" />
<TypeDescriptor TypeName="System.Int32" Name="customerid" />
</TypeDescriptors>
</TypeDescriptor>
</TypeDescriptors>
</TypeDescriptor>
</Parameter>
</Parameters>
<MethodInstances>
<MethodInstance Name="SalesOrderFinderInstance" Type="Finder"
ReturnParameterName="SalesOrders" />
<MethodInstance Name="SalesOrderSpecificFinderInstance" Type="SpecificFinder"
ReturnParameterName="SalesOrders" />
</MethodInstances>
</Method>
</Methods>
</Entity>