Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tony Kiernan 278 posts 341 karma points
    Jul 09, 2012 @ 14:04
    Tony Kiernan
    0

    Testing for empty xml datatype

    I'm using a datatype that records multiple values as xml (Embedded Content, I thin that uComponents multipicker does the same).  So in the database, for an empty value it records something (in this instance '<data></data>'). I want to do get a recursive value for this by doing somerthing like this:

    var modules = Model.Modules;
    if(modules.Count < 1)
    {
    modules = Model.AncestorsOrSelf().Where("modules.Count() > 0").Last().modules;
    }

    The where cluase is proving to be a problem. Any ideas?

  • Tony Kiernan 278 posts 341 karma points
    Jul 09, 2012 @ 14:05
    Tony Kiernan
    0
    .Last().Modules;

    Obviously

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies