c# - Timeout updating blob field using Entity Framework 4 -


i'm using ef4 update table blob field. code snippet below:

public void savepolicydocument(int policyid, int batchid, byte[] file)     {         policydocument policydocument = getpolicydocument(policyid, batchid);         policydocument.documentimage = file;         myentities.policydocuments.applycurrentvalues(policydocument);         myentities.objectstatemanager.changeobjectstate(policydocument, entitystate.modified);         myentities.savechanges();     } 

if blob field of policydocument null, updating blob field works fine. if there's value in blob field, timeout error in updating record.

thanks ideas.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -