Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LoadRow
Message
De
28/07/2009 19:45:17
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Divers
Thread ID:
01415120
Message ID:
01415218
Vues:
50
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform