Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enterprise Library Datatypes
Message
De
27/09/2006 10:15:12
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Titre:
Enterprise Library Datatypes
Divers
Thread ID:
01157477
Message ID:
01157477
Vues:
91
All,

I have a field in a table called attachment of VarBinary(Max) type. From a C# program that uses enterprise library, I am adding an in Parameter. The AddInParameter requires a data type parameter(dbType). What should I use to pass the attachment parameter? The length is usually more than 8,000. I've included my code below. Please help.
    DbCommand command = database.GetStoredProcCommand(spName);
    database.AddOutParameter(command, "@MessageDeliveryDocumentId", DbType.Int32, 0);
    database.AddInParameter(command, "@MessageDeliveryId", DbType.Int32, messageDeliveryId);
    database.AddInParameter(command, "@Attachment", DbType.Binary, attachment);
    database.AddInParameter(command, "@FileName", DbType.String, fileName);
    database.AddInParameter(command, "@FileType", DbType.String, fileType);
Thanks

Jim
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform