locked
Storing a XML using Entity framework RRS feed

  • Question

  • Hi

    I have created entity and confused with adding property to the entity. 

    I want to store xml in a BLOB. which data type i should select in property window?

     

     


    Many Thanks Deepak
    Wednesday, August 25, 2010 6:04 PM

Answers

  • Hi,

    It seems that you want to store xml into a binary column of an entity from my perspective. If that's the case, you need to select binary data type in property window.

    Basically, xml can be treated as String, you could add you xml to the entity by converting it to a byte array and then build a Binary instance. If your scenario is different, please provide more information.

    regards

    • Proposed as answer by Patriek van Dorp Friday, August 27, 2010 10:03 PM
    • Marked as answer by liurong luo Monday, August 30, 2010 10:51 AM
    Friday, August 27, 2010 7:11 AM