Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LoadRow
Message
From
28/07/2009 19:45:17
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Miscellaneous
Thread ID:
01415120
Message ID:
01415218
Views:
54
Eric,

You can also set that differently at the specific business object if you have one that needs to use different command type than the application default. Then if you want to use say Stored Procedures but have just one method where you want to use a command string you can use one of the overloads like this.
    return this.GetEntityList("SELECT * FROM Customer", CommandType.Text);
Gives you lots of options
Tim


>Is this what you're looking for?
>
>
>
>public ABusinessObject()
>        {
>            this.DatabaseKey = "DBName";
>            this.RetrieveAutoIncrementPK = true;
>            this.DefaultCommandType = CommandType.StoredProcedure;
>            this.AutoSaveOnParentSaved = true;
>        }
>
>
>>I must have something not set quite right. When I invoke any entity's loadRow() method, it's failing. Digging into it, the method appears to build a perfect command string for what I need, but then when it calls loadDataSet() its sends the CommandType parameter as a StoredProcedure, rather than a command. Where's the setting to say that it's not a stored procedure?
>>
>>Thanks,
>>
>>Eric
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform