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
Post a Comment